How to used BufferedRader_ _And InputStreamReader -with Exsmple - LearnHowToCode SarkariResult.com Interview Questions and Answers LearnHowToCodeOnline
How to used BufferedRader_ _And InputStreamReader -with Exsmple

How to used BufferedRader_ _And InputStreamReader -with Exsmple

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);

  }
}

About EasyToCode

I'm Ethan Mariano a software engineer by profession and reader/writter by passion.I have good understanding and knowledge of AngularJS, Database, javascript, web development, digital marketing and exploring other technologies related to Software development.

0 comments:

Featured post

Political Full Forms List

Acronym Full Form MLA Member of Legislative Assembly RSS Really Simple Syndication, Rashtriya Swayamsevak Sangh UNESCO United Nations E...

Powered by Blogger.