HackerRank - Java Stdin and Stdout I - Task 2 - With Source Code

Publicado el: 19 enero 2023
en el canal de: RAHUL VIJAYAN
180
13

HackerRank - Java Stdin and Stdout I - Task 2 - With Source Code

Click me: https://cutt.ly/0OhGMCy

Source Code: https://github.com/Rahulvijayan2291/H...

Follow me on:
LinkedIn:   / rahul-vijayan-682a12194  

Instagram:   / rahulzz_  

Facebook:   / rahul.vijayan.5815  

GitHub : https://github.com/Rahulvijayan2291


#RahulVijayan
#hackerrankpush
#hackerranksolutions
#hackerranksolution







/* Most HackerRank challenges require you to read input from stdin (standard input) and write output to stdout (standard output).
One popular way to read input from stdin is by using the Scanner class and specifying the Input Stream as System.in. For example:
Scanner scanner = new Scanner(System.in);
String myString = scanner.next();
int myInt = scanner.nextInt();
scanner.close();
System.out.println("myString is: " + myString);
System.out.println("myInt is: " + myInt);
The code above creates a Scanner object named and uses it to read a String and an int. It then closes the Scanner object because there is no more input to read, and prints to stdout using System.out.println(String). So, if our input is:
Hi 5
Our code will print:
myString is: Hi
myInt is: 5
Alternatively, you can use the BufferedReader class.
Task
In this challenge, you must read integers from stdin and then print them to stdout. Each integer must be printed on a new line. To make the problem a little easier, a portion of the code is provided for you in the editor below.
Input Format
There are lines of input, and each line contains a single integer.
Sample Input
42
100
125
Sample Output
42
100
125 */


En esta página del sitio puede ver el video en línea HackerRank - Java Stdin and Stdout I - Task 2 - With Source Code de Duración hora minuto segunda en buena calidad , que subió el usuario RAHUL VIJAYAN 19 enero 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 180 veces y le gustó 13 a los espectadores. Disfruta viendo!