0

can anyone share some example of two methods contain integers and boolean expression

Java program code

7th Mar 2022, 1:43 AM
Dryll M
Dryll M - avatar
2 Answers
+ 2
Class MyClass{ //This method contains int Public int Run(int n){ return n; } //This method contains Boolean Public boolean Walk(int m){ return m; } Public static void main(String a[]){ MyClass obj = new MyClass(); System.out.println(obj.Run(7)); System.out.println(obj.Walk(0)); } }
7th Mar 2022, 3:06 PM
kev_coding
kev_coding - avatar
+ 2
thak u so much😃
7th Mar 2022, 11:19 PM
Dryll M
Dryll M - avatar