Click here to Skip to main content
15,891,136 members
Home / Discussions / Java
   

Java

 
QuestionCalling main() in Java??? Pin
AmbiguousName5-Mar-10 9:12
AmbiguousName5-Mar-10 9:12 
AnswerRe: Calling main() in Java??? Pin
Richard MacCutchan5-Mar-10 9:49
mveRichard MacCutchan5-Mar-10 9:49 
GeneralRe: Calling main() in Java??? Pin
TorstenH.7-Mar-10 22:54
TorstenH.7-Mar-10 22:54 
GeneralRe: Calling main() in Java??? Pin
Richard MacCutchan7-Mar-10 23:56
mveRichard MacCutchan7-Mar-10 23:56 
AnswerRe: Calling main() in Java??? Pin
David Skelly7-Mar-10 22:27
David Skelly7-Mar-10 22:27 
GeneralRe: Calling main() in Java??? Pin
AmbiguousName8-Mar-10 1:36
AmbiguousName8-Mar-10 1:36 
QuestionCommand Line Interface in JAVA?? Pin
AmbiguousName4-Mar-10 5:56
AmbiguousName4-Mar-10 5:56 
AnswerRe: Command Line Interface in JAVA?? Pin
Richard MacCutchan4-Mar-10 21:24
mveRichard MacCutchan4-Mar-10 21:24 
Your Java program should contain a main function defined as:
public static void main (String argv[])

The command line parameters can then be accessed from the argv array.

As to your second question, you pass parameters to other functions in the call to the function, they do not have direct access to the command line parameters.
txtspeak is the realm of 9 year old children, not developers. Christian Graus

AnswerRe: Command Line Interface in JAVA?? Pin
Nagy Vilmos4-Mar-10 22:16
professionalNagy Vilmos4-Mar-10 22:16 
QuestionHow to zip a text file in gzip format Pin
msubbaraodba25-Feb-10 0:51
msubbaraodba25-Feb-10 0:51 
AnswerRe: How to zip a text file in gzip format Pin
David Skelly25-Feb-10 1:16
David Skelly25-Feb-10 1:16 
QuestionVector3d with floating values. Pin
002comp24-Feb-10 19:28
002comp24-Feb-10 19:28 
AnswerRe: Vector3d with floating values. Pin
Cedric Moonen24-Feb-10 20:32
Cedric Moonen24-Feb-10 20:32 
GeneralRe: Vector3d with floating values.(Solved) Pin
002comp24-Feb-10 22:20
002comp24-Feb-10 22:20 
GeneralRe: Vector3d with floating values.(Solved) Pin
Nagy Vilmos25-Feb-10 1:34
professionalNagy Vilmos25-Feb-10 1:34 
AnswerRe: Vector3d with floating values. Pin
Arun Reginald Zaheeruddin1-Mar-10 0:11
Arun Reginald Zaheeruddin1-Mar-10 0:11 
QuestionJava Concurrent Programming guidance Pin
deed.indeed24-Feb-10 12:27
deed.indeed24-Feb-10 12:27 
AnswerRe: Java Concurrent Programming guidance Pin
Nagy Vilmos24-Feb-10 21:57
professionalNagy Vilmos24-Feb-10 21:57 
GeneralRe: Java Concurrent Programming guidance Pin
deed.indeed25-Feb-10 3:46
deed.indeed25-Feb-10 3:46 
QuestionConversion From String To Integer?? Pin
AmbiguousName24-Feb-10 3:34
AmbiguousName24-Feb-10 3:34 
AnswerRe: Conversion From String To Integer?? Pin
Dino Mulahusic24-Feb-10 3:52
professionalDino Mulahusic24-Feb-10 3:52 
GeneralRe: Conversion From String To Integer?? Pin
AmbiguousName24-Feb-10 3:56
AmbiguousName24-Feb-10 3:56 
QuestionSome Exception Problem Pin
002comp22-Feb-10 21:24
002comp22-Feb-10 21:24 
AnswerRe: Some Exception Problem Pin
Nagy Vilmos22-Feb-10 21:57
professionalNagy Vilmos22-Feb-10 21:57 
GeneralRe: Some Exception Problem(Solved) Pin
002comp22-Feb-10 22:17
002comp22-Feb-10 22:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.