learning-java-2825378
learning-java-2825378 copied to clipboard
02 06b
package com.company;
import java.util.Scanner;
public class Main {
public static void main (String[] args) {
double studentGPA =3.37;
String studentFirstName = "EB";
String studentLastName = "Erdene";
System.out.println(studentFirstName + " " + studentLastName + " has a GPA of " + studentGPA );
System.out.println("What do you want to update it to?");
Scanner input = new Scanner(System.in);
studentGPA = input.nextDouble();
System.out.println(studentFirstName + " " + studentLastName +
" now has a GPA of" + studentGPA);
}
}