import java.io.DataInputStream;
class Reading
{
public static void main(String args[])
{
DataInputStream in =new DataInputStream(System.in);
int intNumber=0;
float floatNumber=0.0f;
try
{
System.out.println("Enter a Integer : ");
intNumber =Integer.parseInt(in.readLine());
System.out.println("Enter a Float number : ");
floatNumber = Float.parseFloat(in.readLine());
}catch(Exception ex)
{
ex.printStackTrace();
}
System.out.println("intNumber = " +intNumber);
System.out.println("floatNumber = "+floatNumber);
}
}