Question: Hi, could someone help me with this Java problem? My code below is not working I'm trying to print out my name is An
Hi, could someone help me with this Java problem? My code below is not working
I'm trying to print out "my name is An"
" The Spanish......."
and the third line is "The command-line arguments say " + "\"OOP\"." if the word OOP is typed into the command
For example, assuming the class name was CSC and the command-line was:
java CSC OOP
my script could print out:
My name is An the Spain...... The command-line arguments say "OOP".

public static void main(String[] args) ( //String oop "OOP" System.out.println("My name is An") System.out.println("The Spanish national anthem has no vords.") if (args-=(String oop )){ System.out.println("The command-line arguments say """00P\"." else System.out.println("No command-line arguments given.": System. out.println ( "The command-line " arguments say + "cptS 132'''' ."); System.out.println ("The command-line arguments are not recogmized.")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
