(1) Write a program to take your name as input and print it on console?
1
Expert's answer
2012-03-15T12:12:22-0400
import java.util.Scanner;
public class Greeting { public static void main(String[] args) { System.out.print("Enter your name: "); Scanner scanner = new Scanner(System.in); String name = scanner.nextLine(); System.out.println("You have entered: " + name); }
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment