Friday, September 26, 2008

ANBU HERE DA

HI HOW R U ALL? NOW I HAV CLAS .PLEASE GIVE SOLN FOR MY BLOW PROG...THANKS

Source code:
package javaapplication1;
public class Main {

public static void main(String[] args)
{
for(int i=0;i {
System.out.println("ARGS VALUE["+ i + "]" + args[i]);
}
}
}

Arguments:
right clicked javaapplication1 - properties - run - gave arguments 1 2 3- clicked OK

Run:
init:deps-jar:compile-single:run-single:BUILD SUCCESSFUL (total time: 0 seconds)

NO OTHER OUTPUT WHY? PLEASE RECTIFY


Thursday, September 25, 2008

Enumeration

hello all,
plz help me with enumeration.... i need a simple example for enumeration which explains it clearly....

Wednesday, September 10, 2008

Hi Rathna

First write the code for it

public static void main(String[] args) {

System.out.println(args[0]);

System.out.println(args[1]);

System.out.println(args[2]);

}

Click on " Project name " under project pane on the left side, right click and go to "properties" , in that click on "Run" and U find arguments in right pane. Give your arguments and click OK and run the program.

U can also refer this link.

http://www.javapassion.com/javaintro1/slides/JEDI%20Slides-Intro1-Chapter08-CommandLine%20Arguments.pdf

Thursday, September 4, 2008

How to get System Time......

Hai to all, While I doing my project i face a problem of getting the system time and store it into the SQL Server database, so i try to use the date class of util and also with the sql server, but only format finally i able to insert is yyyy-mm-dd, so if anyone will tell me how to save it in the normal mm-dd-yyyy format or else get the system date and directly store it into the sqlserver ...

Thanks in advance
Regards
M. Tamilselvan