Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started