Problem
1. Write a short Java function, inputAllBaseTypes, that inputs a different value of each base type from the standard input device and prints it back to the standard output device.
2. Write a short Java function that takes an integer n and returns the sum of all the integers smaller than n.