Answers for "what really is System.out in java"

2

system.in example in java

package com.mkyong.io;

import java.util.Scanner;

public class JavaScanner {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        String input = "";
        while (!"q".equalsIgnoreCase(input)) {

            System.out.print("Enter something (q to quite): ");

            input = scanner.nextLine();
            System.out.println("input : " + input);
        }

        System.out.println("bye bye!");
    }

}
Posted by: Guest on April-25-2020
1

java system out

System.out.println("Hello World");
Posted by: Guest on March-12-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language