Write a Program that accepts two Strings as command line arguments and generate the output .
Answers
Answered by
0
Class Answer{
public static void main(String a, String b){
System.out.println(a);
System.out.println(b);
}
}
public static void main(String a, String b){
System.out.println(a);
System.out.println(b);
}
}
Answered by
0
Answer:
class a
{
public static void main(string args[])
{
system.out.println(args[0] + “ technologies ”);
system.out.println(args[1]);
}
}
Explanation:
class a
{
public static void main(string args[])
{
system.out.println(args[0] + “ technologies ”);
system.out.println(args[1]);
}
}
above is a java code for taking 2 command lines argument strings are printing them as given format.
the first argument is printed by args[0]
the + sign concatenates the strings. (with string technologies)
then second argument is printed by args[1].
Similar questions
Social Sciences,
4 months ago
English,
4 months ago
English,
9 months ago
Physics,
1 year ago
Physics,
1 year ago