Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

multiple inputs java

public static void main(String args[])
{
System.out.println(args[0]);
System.out.println(args[1]); 
System.out.println(args[2]);
System.out.println(args[3]);
}

Execution : java filename.java 1 myname false true
output:		1 myname false true 
Source by javatutoring.com #
 
PREVIOUS NEXT
Tagged: #multiple #inputs #java
ADD COMMENT
Topic
Name
6+4 =