Ok so here is the problem:
i am working on a code that will read a date from the keyboard in MM//DD//YYYY format. and then determines if it is a valid date or not.
So far I have gotten:
import java.util.Scanner;
/**
* Program: UseCheckDate
* File Name: UseCheckDate.java
* Author:
* Date: 03/18/2009
* Description:Java program that takes infromation from a user and determines
* if the date is valid, and uses CheckDate class to further
* determine if the date is valid.
*/
public class UseCheckDate {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// Set up a way to get information from the user
Scanner stdin = new Scanner(System.in);
//Give directions to user on what to enter into the computer
System.out.println("Enter a date in MM/DD/YYYY fromat.");
// set a location to store infromation given by user
String checkDate = stdin.next("");
//String name.trim();
// an object to hold the amount of dates processed.
int datesProcessed = 0;
// setDate mutator method. Needs to be passed a single parameter,
//the date string read from the keyboard. The setDate method is defined
//in the CheckDate class.
//void method named verify. Used to verify the validity of the date
// string and either display a message saying the date is a valid or
//will display one or more error messages indicating waht is wrong with
//the date.
}
}
That is the main method for my program. There is another one that I am working on that goes with this. But I am having a hard time to figure out where I go from here.
I just need a little reminder of where to go and I think I can get it. If you have any good ideas, partial ideas, or hints on where to look it would be appreciated. Thank you for the time. Please let me know if you need the other section of code to go with this in order to understand it better.
Thanks again.