Write a program in java to convert integer to float and character to float