forked from CodeX-SIT/community-25-java-task1-Java-Task1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathq1.java
More file actions
31 lines (27 loc) · 1.13 KB
/
q1.java
File metadata and controls
31 lines (27 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// FILL HERE: Import the necessary package for input operations
// FILL HERE: Write the class declaration with proper naming convention
public class q1 {
// FILL HERE: Write the main method signature
public static void main(String[] args) {
// Variable declarations and initialization
int age = 25;
double height = 5.8;
char grade = 'A';
boolean isStudent = true;
String name = "John Doe";
// Output statements
System.out.println("=== Student Information ===");
System.out.println("Name: " + name);
System.out.println("Age: " + age);
System.out.println("Height: " + height);
System.out.println("Grade: " + grade);
System.out.println("Is Student: " + isStudent);
// Data type demonstration
System.out.println("\n=== Data Type Information ===");
System.out.println("age is of type: int");
System.out.println("height is of type: double");
System.out.println("grade is of type: char");
System.out.println("isStudent is of type: boolean");
System.out.println("name is of type: String");
}
}