Weight Converter, Pound to Kilogram, Ounce to Kilogram



This example shows how to take input from the user and convert pound to Kilogram and also how to convert Ounce to Kilogram.
The user should first enter a number in pound. The program makes the conversion to Kilogram and prints out the result.
Next the user is asked to enter a number in ounce. The program makes the conversion to Kilogram and prints out the result.
It uses a BufferedReader and InputStreamReader to collect the input from the user.

This is what the output could look like when the above class is executed:







Search for more Java info on this site here:
Custom Search


Any thoughts or questions?