Question: Given the following method: static String saySomething ( String name ) { String output = ; if ( name . length ( )
Given the following method:
static String saySomethingString name
String output ;
if namelength
output name your name is short.";
else
output name your name is long.";
return output;
What would the output be to the screen after following statement?
System.out.printlnsaySomethingJen;
Jen, your name is short.
Jen, your name is long.
saySomethingJen
Jen
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
