// Correctly outputs as expected unlike in JShell even after you change code pages to UTF-8:
//
// stdin: UTF-8
// stdout: UTF-8
// 👍
// √2 ÷ 2 = 1 / √2
// Input: √2 ÷ 2 = 1 / √2👍
// √2 ÷ 2 = 1 / √2👍
import java.util.Scanner;

class Test {
    public static void main(String[] args) {
        System.out.println("stdin: " + System.getProperty("stdin.encoding"));
        System.out.println("stdout: " + System.getProperty("stdout.encoding"));
        System.out.println("👍");
        System.out.println("√2 ÷ 2 = 1 / √2");
        System.err.print("Input: ");
        System.out.println((new Scanner(System.in, System.getProperty("stdin.encoding"))).nextLine());
    }
} 