Computer Science, asked by Tejanshusethi9446, 1 year ago

Write a program that accepts two strings as command line arguments and generate the output

Answers

Answered by Ritiksuglan
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 nikhilchatta
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