Answer to Question #254578 in Java | JSP | JSF for Mike

Question #254578

Your task is to create a program that can achieve the above requirements when given the students surname, first name and three digit postfix through CMD arguements


1
Expert's answer
2021-10-22T16:48:44-0400
import java.util.Scanner;
public class Main
{
 public static void main(String[] args) {
 Scanner input=new Scanner(System.in);
 String S,F;
 int num;
 System.out.println("Input surname: ");
 S=input.next();
 System.out.println("Input first name: ");
 F=input.next();
 System.out.println("Input three digit postfix: ");
 num=input.nextInt();
 System.out.print("Entered details are: \n");
 System.out.println("Surname: "+S);
 System.out.println("First name: "+F);
 System.out.println("Digit: "+num);
 }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS