Advertisement
andresnogales

Main3.java

Sep 29th, 2021
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. public class Main3 {
  2.  
  3.     public static void main(String[] args) {
  4.         Word word = new Word();
  5.         do {
  6.             word.setWord(Helper.getValidWord("Ingrese una palabra para saber si es un palindromo: "));         
  7.             word.showIfPalindrome();
  8.         } while (Helper.yesOrNo("Desea continuar?") == 'S');
  9.         System.out.println("Fin del programa");
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement