We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Java Stdin and Stdout II
Java Stdin and Stdout II
Sort by
recency
|
1231 Discussions
|
Please Login in order to post a comment
We use the nextLine() in the String then only we get the output, It reads the text which was written by us. Code:- import java.util.Scanner;
public class Solution {
}
wtf is this bullshit
import java.util.Scanner;
class Solution { public static void main(String args[]) { Scanner sc = new Scanner(System.in);
}
For Java15 Platform
I wrote the code from scratch just to get more practice
A more resilient solution capable of handling multiple empty lines before string
import java.util.Scanner;
public class Solution {
}