package testclass; public class AdvancedTest { private static void method() { System.out.println("Hello"); } public static void main(String[] args) throws Exception{ method(); char c = (char) System.in.read(); if (c == 'a') { System.out.println("Is a"); } else { System.out.println("Is not a"); } } }