From e2353ca01e1cb6bd61d133360392312989f2d769 Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Halili Date: Sat, 4 Oct 2025 15:13:58 +0000 Subject: [PATCH] fix: apply last syntax fixes and then some Signed-off-by: GitHub --- .../projects/variableNamingConventions.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/java/src/dev/andreijiroh/studentops/projects/variableNamingConventions.java b/java/src/dev/andreijiroh/studentops/projects/variableNamingConventions.java index 8ad7c92..a0b0e6e 100644 --- a/java/src/dev/andreijiroh/studentops/projects/variableNamingConventions.java +++ b/java/src/dev/andreijiroh/studentops/projects/variableNamingConventions.java @@ -5,24 +5,25 @@ package dev.andreijiroh.studentops.projects; * @author Andrei Jiroh Eugenio Halili (STI College Meycauayan) */ public class variableNamingConventions { - public static void(String[] args) { + public static void main(String[] args) { // Set A int age = 24; // age - double height = 1.75 // in meters + double height = 1.75; // in meters String legalName = "Juan Luna IV"; // full name - char gender = 'M' // gender + char gender = 'M'; // gender boolean isStudent = true; // confirming if the person is a student // Set B but fixed int subjects = 6; // number of subjects - double weight = 70.5 // weight in kg + double weight = 70.5; // weight in kg String birth_place = "Ilocos Norte"; // birthplace char blood_type = 'O'; // blood type boolean has_pets = true; // confirming if the person has pets // Set C System.out.println("Name: "+legalName); - System.out.println("Height: "+height); + System.out.println("Age: "+age); + System.out.println("Height: "+height+" meters"); System.out.println("Gender: "+gender); System.out.println("Is Student: "+isStudent); System.out.println("Number of Subjects: "+subjects); -- 2.51.2