Java Int to String

  • + 0 comments
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println((scan.hasNextInt()) ? ("Good job") : ("Wrong answer"));
        scan.close(); 
    }