Java Methods
Java Methods
1. Write a Java method to find the smallest number among three numbers. Go
to the editor
Test Data:
Input the first number: 25
Input the Second number: 37
Input the third number: 29
Expected Output:
The smallest value is 25.0
Click me to see the solution
Genel
Genel
Genel
Genel
Expected Output:
Years FutureValue
1 1104.71
2 1220.39
3 1348.18
4 1489.35
5 1645.31
Click me to see the solution
Expected Output:
( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ;
< = > ? @ A B C D E F G H I J K L M N O
P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c
d e f g h i j k l m n o p q r s t u v w
x y z
Click me to see the solution
10. Write a Java method to check whether a year (integer) entered by the user
is a leap year or not. Go to the editor
Expected Output:
Input a year: 2017
false
Click me to see the solution
Genel