Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

public class Main {

    public static void main(String[] args) {
        char ch1 = 'A', ch2 = '9';

        boolean b1 = Character.isLetter(ch1);
        boolean b2 = Character.isLetter(ch2);

        System.out.println(ch1 + " is a letter is " + b1);
        System.out.println(ch2 + " is a letter is " + b2);
    }
}