Making a Profile in Java
Hi everyone , My name is Abhay Rai. I am a student of class 11. I am studing in Blue Bells Public School.This is my first blog , in this blog I shall give you some java coding for making a simple anyone's profile program in which you write your name , class , section , age and school name etc.
/**
* Write a description of class Profile here.
*
* @author (Abhay)
* @version (30-8-2020)
*/
import java.util.Scanner;
public class Profile
{
public void main()
{
Scanner input = new Scanner(System.in);
System.out.println("Enter your name");
String n= input.next();
System.out.println("Enter your class");
int c = input.nextInt();
System.out.println("Enter your Section");
String s= input.next();
System.out.println("Roll no.");
int r= input.nextInt();
System.out.println("School name");
String sc= input.next();
System.out.println("Profile");
System.out.println("Name:"+ n);
System.out.println("Class:"+ c);
System.out.println("Section:"+ s);
System.out.println("Roll no.:"+r);
System.out.println("School name:"+ sc);
}
}
Thanks for this
ReplyDeleteGood
ReplyDelete