public class main { public static void main(String[] args) { start s=new start(); s.begin(); } }import java.util.Scanner; public class start { converter c=new converter(); public void begin(){ boolean quit = false; while (quit==false){ System.out.println("Welcome to Calvin's Pig Latin Translator."); System.out.println("Press 1 to Start, 2 to Quit"); enter(); /*Scanner start=new Scanner(System.in); //when this runs, it always goes to the last else String var=start.nextLine(); if(var.equals(1)){ enter(); }else{if(var.equals(2)){ quit=true; }else{ System.out.println("Incorrect input. Please try again"); } }*/ } } public void enter(){ System.out.println("Please enter the word you want to enter into Pig Latin"); Scanner word=new Scanner(System.in); String input=word.nextLine(); c.word(input); } }public class converter { public void word(String wrd){ char letter='w'; String wooord=wrd; if (!charKind(wrd.charAt(0))){ letter=wrd.charAt(0); wooord=wrd.substring(1); } printer(letter, wooord); } public void printer(char cha, String wd){ System.out.println(wd+" "+cha+"ay. "); } boolean charKind(char ch){ boolean vowel=false; if(ch==('a'|'e'|'i'|'o'|'u')){ //doesnt ever return true vowel = true; } return vowel; } }