Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can Someone Help Me On This Assignment (What Am I Doing Wrong?)

807601Dec 8 2007 — edited Dec 8 2007
What Am I Doing Wrong With This Code It Continues To Have Errors Saying:
',' expected on line 35, 39, 43, 47, and 51

/**
 *Darron Jones
 *December 7, 2007
 *4th Period
 *Tech Orientation
 *Assignment 4 Assignment
 *I recieved Help from The Java Book and the internet
 *
 */
 
 import java.util.Scanner
 ;
 public class Assignment4
 {
 	public static void main (String []args)
 	{
 		String name;
 		String city;
 		String state;
 		String day;
 		String month;
 		String year;
 		String age;
 		
 		Scanner kb = new Scanner (System.in);
 		System.out.println ("What is your name?");
 		name=kb.nextLine();
 		System.out.println("So your name is?"+(name));
 		
 		System.out.println ("What is your home city?");
 		city=kb.nextLine();
 		System.out.println("Oh your from?"+(city));
 		
 		System.out.println ("What is your home state?");
 		state=kb nextLine();
 		System.out.println("So your from the state of?"+(state));
 		
 		System.out.print ("What is your birth day?");
 		day=kb nextLine();
 		System.out.println("So you where born on the day of?"+(day));
 		 		
 		System.out.print ("What is your birth month?");
 		month=kb nextLine();
 		System.out.println("So you were born on the month of?"+(month));
 		
 		System.out.print ("What is your birth year?");
 		year=kb nextLine();
 		System.out.println("So you were born in the year of?"+(year));
 		
 		System.out.print ("What is your age?");
 		age=kb nextLine();
 		System.out.println("So your this is how old you are?"+(age));
 		
 		
 	}
 }
 
 
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 5 2008
Added on Dec 8 2007
4 comments
80 views