From cbfe723b2bb8bd9c48d62fd8bc8120fb9098aa15 Mon Sep 17 00:00:00 2001 From: sasmithakarthi <85392596+sasmithakarthi@users.noreply.github.com> Date: Fri, 1 Apr 2022 10:14:23 +0530 Subject: [PATCH] updated FirstJavaCode --- FirstJavaCode.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/FirstJavaCode.java b/FirstJavaCode.java index 7266c57..e9de4d2 100644 --- a/FirstJavaCode.java +++ b/FirstJavaCode.java @@ -4,8 +4,14 @@ class FirstJavaCode public static void main(String...args) { - System.out.println("Hello to Java Programming World"); + System.out.println("Hello to Java Programming World"); + FirstJavaCode s=new FirstJavaCode(); + s.newMethod(); } + void newMethod() + { + System.out.println("Hello its new method"); + } -} \ No newline at end of file +}