public class Enzanshi9 { public static void main(String[] args) { int x = 10; int y = 20; String s = x == y ? "同じ" : "違う"; // 表示 System.out.println("sの値は " + s + " です。"); } }