-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathStrings.java
More file actions
20 lines (18 loc) · 809 Bytes
/
Copy pathStrings.java
File metadata and controls
20 lines (18 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// This is the starter code snippet for Strings.
// Follow the notebook to finish it up!
public class Strings {
public static void main(String[] args){
int studentAge = 21; // your first variable
double averageScore = 85.5; // your second variable
char studentFirstInitial = 'G'; // your third variable
char studentLastInitial = 'C'; // your fourth variable
boolean hasPerfectAttendence = true; // your fourth variable
String studentName = "Molly Huq"; // your fifth variable
System.out.println(studentAge);
System.out.println(averageScore);
System.out.println(studentFirstInitial);
System.out.println(studentLastInitial);
System.out.println(hasPerfectAttendence);
System.out.println(studentName);
}
}