Class and Call Functions
Program is written in Notepad File..... The Program below u see in pic form. there is a class defined. In class there are two functions "Setdata" and "getdata". Setdata function is for input data from main program througs arguments and store it in variables. Getdata Function is for print the variable values... Now Save the program in C:\Program Files\JAVA\jdk1.6.0_u23\bin Then 1. Click Start > Run 2. Type "CMD" > OK 3. the Command Prompt will apear... 4. Open the jdk directory. like C:\Program Files\Java\jdk1.6.0_23\bin 5. Type "javac FileName.java". If there is any Errors in your Program. u will see in command prompt. 6. To Execute Program type "java Filename" ( No extension. like .java) 7. Example Shown Below