Question: 1 . 3 8 Variables, input, and casting ( Java ) import java.util.Scanner; public class BasicInput { public static void main ( String [ ]
Variables, input, and casting Java
import java.util.Scanner;
public class BasicInput
public static void mainString args
Scanner scnr new ScannerSystemin;
int userInt ;
double userDouble ;
FIXME Define char and string variables similarly
System.out.printlnEnter integer: ;
userInt scnrnextInt;
FIXME : Finish reading other items into variables, then output the four values on a single line separated by a space
FIXME : Output the four values in reverse
FIXME : Cast the double to an integer, and output that integer
return;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
