JAVA Program that prints your Name and Address

import java.util.*;

public class Program
{
	public static void main(String[] args){
	
		String name, Address;

		Scanner input = new Scanner(System.in);

		System.out.println("Enter your name: ");

		name = input.nextLine();

		System.out.println();

		System.out.println("Enter your Address: ");

		Address = input.nextLine();

		System.out.println();

		System.out.println("Your name is: " + name);

		System.out.println("Your Address is:" +Address);

	}

}

Output :
Enter your name:
Raj
Enter your Address:
London
Your name is: Raj
Your Address is:London



Leave a comment