Linked Questions

55 votes
8 answers
472k views

How can you explain very well, to a beginner, the meaning of String args[] and the use of static in the following excerpt? class FirstApp { public static void main(String[] args) { ... ...
Sam's user avatar
  • 3,177
2 votes
7 answers
28k views

I added the following code to a new class I created in Java: public static void main(String[] arguments) { I understand what public, static and void mean, but what does (String[] arguments) mean?
Tony Smith's user avatar
2 votes
5 answers
7k views

Main method in Java have the String[] as input parameter to the main method, but i want to pass object as a parameter. Java and all command line parametrized languages accept only String array of ...
Girish K's user avatar
  • 778
0 votes
5 answers
12k views

Possible Duplicate: What is “String args[]”? in Java What is the purpose of this method in java. If we not use what happens? If i give some array size then what happens
Govindarajulu's user avatar
-2 votes
2 answers
14k views

Possible Duplicate: What is “String args[]”? in Java How do you accept values using command line argument in java? Whenever I try to do it, it shows Exception in thread "main" java.lang....
Arnold Parge's user avatar
  • 6,905
-4 votes
2 answers
13k views

public static void main(String[] args) What is String[] args? When would you use args?
kitaniboy's user avatar
0 votes
3 answers
2k views

In the standard public static void main(String[] args), I have noticed that (at least in Dr. Java), you can use other words besides args, but I have never seen any code that does deviate from this ...
Phonzi's user avatar
  • 144
0 votes
3 answers
10k views

public static void main(String[] argv) { Connection connection = DatabaseDriverExtender.connectOrCreateDataBase(); if (connection == null) { System.out.print("NOOO"); } ...
teemo timmy's user avatar
-5 votes
4 answers
7k views

In java main method, what's the purpose of String args[] in public static void main (String args[]) ?
Sachin Rana's user avatar
2 votes
2 answers
707 views

Possible Duplicate: What is “String args[]”? in Java So I recently (well, three days ago) started teaching myself Java, with absolutely zero previous programming experience unless you count HTML/...
Adam's user avatar
  • 375
-2 votes
2 answers
730 views

I wrote this code for a simple calculator and I get this error! Someone help me please! public class Calculator { public static void main (String[] args) { int num1 = Integer.parseInt(args[0]...
K. Lujan's user avatar
-1 votes
2 answers
405 views

I am a new programer and I'm just starting to learn the basics of Java and I'm trying to understand what exactly "args" stands for in "public static void main(String[] args)". I ...
Pan Eyal's user avatar
0 votes
1 answer
618 views

Hello how do I change it so I don't get the error mentioned above? I don't know how to add or declare args[0] before. public class DN02 { public static void main(String[] args) { if (args[...
Failed Student's user avatar
-2 votes
1 answer
425 views

I have working code that encrypts a phrase using a caesar cipher but this is with predetermined inputs (HELLOWORLD and 4 as the sift). What I would like to do is enable a user to choose their own ...
james smith's user avatar
0 votes
1 answer
156 views

public class CommandArgsThree { public static void main(String [] args) { String [][] argCopy = new String[2][2]; int x; argCopy[0] = args; x = argCopy[0]....
Raghu Ram Mullapudi's user avatar

15 30 50 per page
1
2 3 4 5