String sAge = scan.nextLine();
Scanner scan = new Scanner( System.in );
System.out.print( "what year were you born? >");
int iAge = scan.nextInt (sAge);
final double Cyear = 2014;
final double LEmax = 77.9;
System.out.println( "\nThe percentage of your life you have lived is " + int LEmax );
When I compile this, I get these errors:
C:\Users\PracticeMethods.java:54: error: '.class' expected
System.out.println( "\nThe percentage of your life you have lived is " + int LEmax );
^
C:\Users\PracticeMethods.java:54: error: ';' expected
System.out.println( "\nThe percentage of your life you have lived is " + int LEmax );
What am I doing wrong? Can you help me resolve these errors?