import java.io.*;
class BufferedInputStream
{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("please enter the rollno");
int rollno =Integer.parseInt(br.readLine());
System.out.println("please enter the name");
String name=br.readLine();
System.out.println("please enter thr course name");
String course=br.readLine();
System.out.println("please enter the addresss");
String Address=br.readLine();
System.out.println("please enter the city name");
String city= br.readLine();
System.out.println("----------All Details--------");
System.out.println(+rollno+"\n"+name+"\n"+course+"\n"+Address+"\n"+city);
}
}
class BufferedInputStream
{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("please enter the rollno");
int rollno =Integer.parseInt(br.readLine());
System.out.println("please enter the name");
String name=br.readLine();
System.out.println("please enter thr course name");
String course=br.readLine();
System.out.println("please enter the addresss");
String Address=br.readLine();
System.out.println("please enter the city name");
String city= br.readLine();
System.out.println("----------All Details--------");
System.out.println(+rollno+"\n"+name+"\n"+course+"\n"+Address+"\n"+city);
}
}
0 comments:
Post a Comment