/-IH-Java-Prework

Java prework challenges

Primary LanguageJava

[IH Java Bootcamp] Java Prework

The goal of this activity is focused on gaining experience by doing exercices.

CHALLENGE 1 : Find Maximum
______________________________________
Write a method that returns the largest integer in the list. 
You can assume that the ist has at least one element.


CHALLENGE 2 : PRINT NUMBER IN WORD
______________________________________
Write a program called printNumberInWord which prints "ONE", "TWO",
... , "NINE", "OTHER" if the int variable "number" is 1, 2,... , 9, 
or other, respectively. 
Use:
   (a) a "nested-if" statement
   (b) a "switch-case-default" statement


CHALLENGE 3 : PRINT NUMBER IN WORD
______________________________________
Write a method called checkOddEven which prints "Odd Number" if
 the int variable “number” is odd, or “Even Number” otherwise.



CHALLENGE 4 : PRINT NUMBER IN WORD
______________________________________
Write a method average that returns the average of the integer 
in the list. You can assume that the list has at least one element.

More info