We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bcccaa commit fb7ab6aCopy full SHA for fb7ab6a
out/production/learning-java-2825378/Main.class
56 Bytes
src/Main.java
@@ -7,8 +7,8 @@ public static void main(String[] args) {
7
8
String studentFirstName = "Kayla";
9
String studentLastName = "Hammon";
10
- char studentFirstInitial = 'K';
11
- char studentLastInitial = 'H';
+ char studentFirstInitial = studentFirstName.charAt(0);
+ char studentLastInitial = studentLastName.charAt(0);
12
13
System.out.println(studentAge);
14
System.out.println(studentGPA);
0 commit comments