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 (System.in);
public static void main (String [] args){
//(1) Call a method that returns your last name:
char myMiddleInitial =m;
//(2) 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.
//(3) call a method that takes in as input (argument), the name and your upper case middle initial and print them:
}//end of main
//(4) write the code for the method call of (1) above here
//(5) write the code for method call of (2 above) here
//(6) Write the code for the method call od (3 above) here.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!