View Single Post
  #1 (permalink)  
Old 01-12-2008, 06:59 AM
Deon's Avatar
Deon Deon is offline
Member
 
Join Date: Jan 2008
Posts: 12
Deon is on a distinguished road
i don understand this error
Hi guys please help me slove this problem =D

this is my half way yet to complete code but i already got some error

PHP Code:
import java.util.Scanner;
public class 
PersonApp{
public static 
void main(String args[]){

String nameGendericNo;
Integer DOB;

Scanner input = new Scanner(System.in);

System.out.print("Enter your name :");
name input.nextstring ();

System.out.print("Enter your date of birth (dd/mm/yyyy) :");
DOB input.nextInt ();

System.out.print("Enter your gender :");
Gender input.nextString ();

System.out.print("Enter your IC number :");
icNo=input.nextInt ();


    }
//Main

}//class 
This is the error i got


__________________
I LOVE JAVA!
Reply With Quote
Sponsored Links