Given an array of type double, write a Java program that will calculate the average of all the non-negative numbers in the array, zero inclusive, and return zero otherwise. Your program should also check for any possible errors and throw an exception, if any.
Guidelines:
Construct a Java program to clone a two-dimensional array of float entries to another two-dimensional array of similar type and size. Your program should also check for any possible errors and throw an exception, if any.
Guidelines:
Write a Java program that takes all the lines input to standard input and writes them to standard output in reverse order. That is, output each line in the reverse order of input.
Guidelines:
Construct a Java program that will rearrange an array of int values so that all the even values appear before all the odd values in the order they appear. Your program should also check for any possible errors and throw an exception, if any.
Guidelines: