Code:
import java.util.*; 

public class BarEntry2 {
    public static void main(String[] args){
        testTheAgeGivenTheYear() ; 
    }

public static void testTheAgeGivenTheYear() {
    System.out.println("What year where you born in?") ;
        
        if (age >=21) {
         System.out.println("Come on in :)!") ; }
        else {
         System.out.println("Sorry you're to young :(!") ; }
    Scanner console = new Scanner(System.in);
    int currentYear = 2011;    
    int currentMonth = 7 ;
    int birthMonth = console.nextInt() ;
    int birthYear = console.nextInt() ;
    int age = currentYear - birthYear;
    boolean CheckAdditionalAges = true;
    

    }
    
}
I'm so lost

Last edited by shabbir; 21Jul2011 at 09:40.. Reason: Code blocks