1. Write the output of the following code fragment:
Integer i1 = new Integer(15);
double d1 = i1.doublevalue();
long 11 = i1.longValue();
system.out.println("d1 =" + d1);
system.out.println("11 = " + 11);
Double doly = new Double (15.23);
float f= dobj.floatValue();
int i = dobj.intValue();
System.out.println("f="+f);
System.out.println("i = " + 1);
rogram?
Answers
Answered by
1
Answer:
.4 The following code fragment reads in two numbers: Scanner input = new Scanner(System.in); int i = input.nextInt(); double d = input.nextDouble(); ... A. Enter an integer, a space, a double value, and then the Enter key. ... System.out.print("Enter three numbers: ");
Explanation:
Similar questions