Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions

Question

Describe criteria for choosing communication media.

Answered: 1 week ago

Question

Methods of Delivery Guidelines for

Answered: 1 week ago