Java Stdin and Stdout I

Sort by

recency

|

589 Discussions

|

  • + 0 comments

    public static void main(String[] args) { Scanner sc= new Scanner(System.in); int a=sc.nextInt(); int b=sc.nextInt(); int c=sc.nextInt(); System.out.println(a); System.out.println(b); System.out.println(c); sc.close(); }

  • + 0 comments

    While practicing this Java I/O challenge, I was also checking different resources. I found a blog (https://fashionismic.com) where alongside lifestyle content, there were some notes that touched on Java basics. Surprising mix — but interesting! Has anyone else come across lifestyle sites adding coding sections?”

  • + 0 comments

    import java.io.; import java.util.;

    public class Solution {

    public static void main(String[] args) {
        /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
        Scanner sc= new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int c=sc.nextInt();
        System.out.println(a);
            System.out.println(b);
                System.out.println(c);
        sc.close();
    }
    

    }

  • + 0 comments

    Java is one of the most reliable and versatile programming languages out there. 11xplay ID

  • + 1 comment
    import java.io.*;
    import java.util.*;
    
    public class Solution {
    
        public static void main(String[] args) {
            /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
            Scanner scanner = new Scanner(System.in);
            while (scanner.hasNext()) {
                System.out.println(scanner.nextInt());
            }
            scanner.close();
        }
    }