Computer Science, asked by avinashmurmu99311, 9 months ago

Java program to input your first name and display it with a message​

Answers

Answered by Anonymous
1

Answer:

//program to input int, float and string value

import java.util.Scanner;

public class GetIpAddress

{

public static void main(String args[]) throws Exception

{

String your name

Scanner SC=new Scanner(System.in);

System.out.print("Enter name: ");

name= SC.nextLine();

System.out.println("Name: " + name);

}

Similar questions