Write a program that accepts two strings as command line arguments and generate the output
Answers
Answered by
0
Answer:
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
Answered by
0
Answer:
class Sample
{
public static void main(String args[])
{
System.out.println(args[0] + " technologies " + args[1]);
}
}
Explanation:
Both the arguments are taken as command line arguments which are concatinated using + "technologies"
Similar questions
English,
6 months ago
Social Sciences,
6 months ago
Computer Science,
11 months ago
Social Sciences,
11 months ago
Physics,
1 year ago
Biology,
1 year ago
English,
1 year ago