Question: Complete the following program based on the comment lines: public class test { static Scanner console = new Scanner ( System . in ) ;
Complete the following program based on the comment lines:
public class test
static Scanner console new Scanner Systemin;
public static void main String args
Call a method that returns your last name:
char myMiddleInitial m;
call a method that takes in my middle initial and returns the upper case letter of it:
Note that my middle initial could be any letter and not necessary m But always will be lower case letter.
call a method that takes in as input argument the name and your upper case middle initial and print them:
end of main
write the code for the method call of above here
write the code for method call of above here
Write the code for the method call od above here.
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
