Java program to accept two Strings ABC XYZ as cmd line arguments and print the output “ABC PQR XYZ”

Опубликовано: 11 Октябрь 2024
на канале: Basic Code
1,656
15

Java program to accept two Strings ABC XYZ as command line arguments and print the output “ABC PQR XYZ”
---------------------------------------------------------------------------------------------------------------------------

public class Test {
public static void main (String[] args) {

String a=args[0];
String b=args[1];

System.out.println(a+ " PQR "+b);
}
}