Write an infinite loop using do while condition.
import java.util.*;
public class Solutions {
public static void main(String args[]) {
do {
} while(true);
}
}
Write an infinite loop using do while condition.
import java.util.*;
public class Solutions {
public static void main(String args[]) {
do {
} while(true);
}
}
Find the maximum & minimum number in an array of integers.
[HINT : Read about Integer.MIN_VALUE & Integer.MAX_VALUE in Java]
Take an array of Strings input from the user & find the cumulative (combined) length of all those strings.
Write a function that takes in age as input and returns if that person is eligible to vote or not. A person of age > 18 is eligible to vote.