Hi, There is an issue with below line. I have corrected it. it is working fine now. age=Integer.parseInt(keyboard.nextLine()); you entered \'l\' letter in parseInt() method.t should be capital \'i\' letter. WordGame.java import java.util.Scanner; public class WordGame { public static void main(String[]args) { //declaration of variables String name; int age; String city; String college; String profession; String animal; String petName; Scanner keyboard=new Scanner(System.in); System.out.print(\"Enter your name:\"); name=keyboard.nextLine(); System.out.print(\"Enter name of your city:\"); city=keyboard.nextLine(); System.out.print(\"Enter your age:\"); age=Integer.parseInt(keyboard.nextLine()); System.out.print(\"Enter name of your college:\"); college=keyboard.nextLine(); System.out.print(\"Enter your profession: \"); profession=keyboard.nextLine(); System.out.print(\"Enter a type of animal?:\"); animal=keyboard.nextLine(); System.out.print(\"Enter name a petName: \"); petName=keyboard.nextLine(); System.out.print(\"There once was a person named \"+name+\" who lived in \"+city+\".\"); System.out.print(\"At the age of \"+age+\", \"+name+\" went to college at \"+college+\".\"); System.out.print(name+\" graduated and went to work as a \"+profession+\".\"); System.out.print(\"Then, \"+name+\" adopted an \"+animal+\" named \"+petName); System.out.print(\"They both lived ever after!\ \"); } } Output: Enter your name:Suresh Enter name of your city:Vizag Enter your age:29 Enter name of your college:Avanthi Enter your profession: MCA Enter a type of animal?:Dog Enter name a petName: Gali There once was a person named Suresh who lived in Vizag.At the age of 29, Suresh went to college at Avanthi.Suresh graduated and went to work as a MCA.Then, Suresh adopted an Dog named GaliThey both lived ever after! Solution Hi, There is an issue with below line. I have corrected it. it is working fine now. age=Integer.parseInt(keyboard.nextLine()); you entered \'l\' letter in parseInt() method.t should be capital \'i\' letter. WordGame.java import java.util.Scanner; public class WordGame { public static void main(String[]args) { //declaration of variables String name; int age; String city; String college; String profession; String animal; String petName; Scanner keyboard=new Scanner(System.in); System.out.print(\"Enter your name:\"); name=keyboard.nextLine(); System.out.print(\"Enter name of your city:\"); city=keyboard.nextLine(); System.out.print(\"Enter your age:\"); age=Integer.parseInt(keyboard.nextLine()); System.out.print(\"Enter name of your college:\"); college=keyboard.nextLine(); System.out.print(\"Enter your profession: \"); profession=keyboard.nextLine(); System.out.print(\"Enter a type of animal?:\"); animal=keyboard.nextLine(); System.out.print(\"Enter name a petName: \"); petName=keyboard.nextLine(); System.out.print(\"There once was a person named \"+name+\" who lived in \"+city+\".\"); System.out.print(\"At the age of \"+age+\", \"+name+\" went to c.