I'm trying to create a class called 'MyDate'. Does anyone havean idea of how to do this. I tried to follow the instructions fromatutorial, but I'm lost.
/* The MyDate class implements an application that* displays "Hello World!" to the standard output.*/public class MyDate {public static void main(String[] args) {// Display "My Date!"System.out.println("My Date!");}}
that is strange ... have you set the classpath and the path correctly ?is your java file name is MyDate.java ?dan what is the error that shown in your monitor ?
It seems to me you are missing fundamental steps ofprogramming such as the pathway for system torecognize your work not the system works, ie. importor package statements. Unless you already defined ontop of the program which is not showing here.
The problem is that when I go into DOS to run it, I can't find it. Isaved it as MyDate.java,but it can't find it. i'm not sure what idid wrong.
The previous E-mail supposes to follow after this one.You need to log in Sun Java source website and studythe create system path according to your OS.