Step-by-step explanation:
import java.util.Scanner;
public class ReadValues {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Enter the first value: ");
double firstValue = scanner.nextDouble();
System.out.print("Enter the second value: ");
double secondValue = scanner.nextDouble();
System.out.print("Enter the third value: ");
double thirdValue = scanner.nextDouble();
System.out.println("You entered: " + firstValue + " " + secondValue + " " + thirdValue);