Showing posts with label commandline arguments. Show all posts
Showing posts with label commandline arguments. Show all posts
Thursday, May 2, 2013
Wednesday, May 1, 2013
Tuesday, April 30, 2013
Monday, April 29, 2013
Tutorial 5: command line arugument
Tutorial 5: command line arugument
Code:
CommandLineInput.java
package tutorial;
public class CommandLineInput {
public static void main(String[] args) {
String strTemp1 = args[0];
String strTemp2 = args[1];
System.out.println(strTemp1 + "\n" + strTemp2);
}
}
public class CommandLineInput {
public static void main(String[] args) {
String strTemp1 = args[0];
String strTemp2 = args[1];
System.out.println(strTemp1 + "\n" + strTemp2);
}
}
Subscribe to:
Posts (Atom)