Please guys
Like And Subscribe
link(Scanner class):- • User input in java || Scanner class || JAVA
In my previous video i shown you how to take user input using Scanner class.
and In this video i'll show you using BufferedReader class
thanks for watching
code:-
import java.io.*;
public class Buffer
{
public static void main(String []args) throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("enter any string:");
String str=br.readLine();
System.out.println("string:"+str);
System.out.println("enter any number:");
int num=Integer.parseInt(br.readLine());
System.out.println("num:"+num);
}
}
On this page of the site you can watch the video online User input in java using bufferedReader class || JAVA || BufferedReader || with a duration of hours minute second in good quality, which was uploaded by the user easy coding 16 July 2020, share the link with friends and acquaintances, this video has already been watched 86 times on youtube and it was liked by 0 viewers. Enjoy your viewing!