+ 1

Can u pls help me

class Test { 2 instance variable static void method1 print 1st instance variable static void method2 print 2nd instance variable public static void main(String[] args) call method1 call method2 }

17th Apr 2019, 12:49 PM
Arravindh
Arravindh - avatar
4 Antworten
+ 1
Take a look at my code. There are also different methods with in the Same class. That might help... https://code.sololearn.com/cx6fN8Ty53Wk/?ref=app
17th Apr 2019, 12:54 PM
Daniel
+ 1
Thank you so much...
29th Feb 2020, 12:48 AM
Arravindh
Arravindh - avatar
+ 1
Arravindh sachin Your welcome :)
29th Feb 2020, 12:49 AM
Denise Roßberg
Denise Roßberg - avatar
0
class Test { static void method1 (int i){ System.out.println (i); } static void method2 (String str){ System.out.println (str); } public static void main (String [] args){ int number = 5; String text = "hello"; //calling the method method1 (number); method2 (text); } }
17th Apr 2019, 5:32 PM
Denise Roßberg
Denise Roßberg - avatar