Awesome :)
So for your challenge it would be this
public class CommandLineTest
{
public static void main (String[] args)
{
System.out.println ("Hello, " + args[0]);
Type: Posts; User: pottsiex5
Awesome :)
So for your challenge it would be this
public class CommandLineTest
{
public static void main (String[] args)
{
System.out.println ("Hello, " + args[0]);
Oh you mean using the command promt/terminal? I dont regularly run them in there, but i think i understand what you mean now. So if i were to run it in the command prompt or terminal and i were to...
Hey, Im still a little confused. When you say a command-line arguement, is that the same as parameters? And if it is, then i still dont understand how the parameters of function main can be the...
Hi, Im new to java, coming from C++, and i had a question about the first line of code.
public static void main(String[] args)
in the code i understand public static void main, but i dont...