We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c8f9f9 commit 9de6876Copy full SHA for 9de6876
1 file changed
ch05/LogicMethods.java
@@ -1,21 +1,26 @@
1
public class LogicMethods
2
{
3
- public staic void main ( String[] args )
4
-
5
- int
6
+ public static void main(String[] args )
7
8
- System.out.println("The number is large ");
9
- printIsLarge( number 450 )
+ System.out.println("Logic Methods");
+ printIsLargeOrSmall(100) ;
+ printIsLargeOrSmall(75);
10
}
11
12
- public static void main ( String[] args )
+ private static void printIsLargeOrSmall (int number)
+ {
+ if( number > 99 )
13
+ if( number < 10 )
14
15
- {
16
- if (number > 85) ;
17
18
- System.out.println
+ System.out.println("The number is large " ) ;
+ System.out.println("The number is small ") ;
19
20
+
21
-}
22
23
24
25
26
+}
0 commit comments