Okay... so I've done a lot of trial and error... and I can't seem to call my usFormat method to my main and I think I've pretty much messed up the entire thing lol.. any help would be nice. Just... please on the beginner level.
class Date {
String date;
String day;
String month;
String year;
StringTokenizer st;
Scanner sc = new Scanner (System.in);
//instance vars go here
public Date (String date){
while (sc.hasNextLine()) {
st = new StringTokenizer (sc.nextLine());
this.month = st.nextToken();
this.day = st.nextToken();
this.year = st.nextToken();
}
} //end constructor
public String usFormat () {
return month + " " + day + "," + year;
} //end usFormat
public String euFormat () {
return null;
} //end euFormat
public static void main (String[] args){
Date usFormat = new Date (date);
}
}