write a java program to give your details
Answers
Answered by
1
import java.io.*;
public class Details
{
public static void main (String args[])
throws IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter your name");
String na=br.readLine();
System.out.println("Enter your place");
String p=br.readLine();
System.out.println("enter age in number");
int age=Integer.parseInt(br.readLine());
System.out.println("Name:"+na+"\t"+"Age:"+age);
public class Details
{
public static void main (String args[])
throws IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter your name");
String na=br.readLine();
System.out.println("Enter your place");
String p=br.readLine();
System.out.println("enter age in number");
int age=Integer.parseInt(br.readLine());
System.out.println("Name:"+na+"\t"+"Age:"+age);
Similar questions
Sorry this should be added to the program at last.☝️