Computer Science, asked by swetasaha953, 9 months ago

Write a Program that accepts two Strings as command line arguments and generate the output .

Answers

Answered by viraj766
0
Class Answer{
public static void main(String a, String b){
System.out.println(a);
System.out.println(b);
}
}
Answered by nicholfsfa
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