From 0d5bc04f6433e3c2504614a077305e1cfdd1d8c7 Mon Sep 17 00:00:00 2001 From: dikshaguptarg43 <116100314+dikshaguptarg43@users.noreply.github.com> Date: Tue, 18 Oct 2022 21:33:16 +0530 Subject: [PATCH] Create code0987 --- code0987 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 code0987 diff --git a/code0987 b/code0987 new file mode 100644 index 0000000..821070f --- /dev/null +++ b/code0987 @@ -0,0 +1,15 @@ +class Main { + public static void main(String[] args) { + + // declare a variable + char c = 'a'; + + // checks if c is an alphabet + if (Character.isAlphabetic(c)) { + System.out.println(c + " is an alphabet."); + } + else { + System.out.println(c + " is not an alphabet."); + } + } +}