From 1f1fbd37179c25808eb475a99e4272c26bace74c Mon Sep 17 00:00:00 2001 From: "LAPTOP-NIPHD55F\\meraf" Date: Wed, 14 Jun 2023 14:06:27 -0400 Subject: [PATCH 1/2] creating a new index.html to demonstrate my code --- README.md | 4 +++- index.html.txt | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 index.html.txt diff --git a/README.md b/README.md index ddcfed1..d41a77a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # Example Git Project -This project is an example project for the study of demonstrating how to use Git / GitHub. \ No newline at end of file +This project is an example project for the study of demonstrating how to use Git / GitHub. + +I hope you enjoy it \ No newline at end of file diff --git a/index.html.txt b/index.html.txt new file mode 100644 index 0000000..441fc7e --- /dev/null +++ b/index.html.txt @@ -0,0 +1,10 @@ + + + +Example of my project + + + +

Welcome to my project + \ No newline at end of file From 689a73b9a36c027d781751390b93efa61c342777 Mon Sep 17 00:00:00 2001 From: "LAPTOP-NIPHD55F\\meraf" Date: Mon, 19 Jun 2023 10:56:11 -0400 Subject: [PATCH 2/2] Week 2 and 3 --- .gitignore | 2 ++ .../src/com/conderscapus/week2/Agedasi.java | 24 ++++++++++++++ .../com/conderscapus/week2/Week2Example.java | 33 +++++++++++++++++++ .../src/com/coderscampus/objects/Human.java | 9 +++++ .../coderscampus/objects/RunnableClass.java | 17 ++++++++++ 5 files changed, 85 insertions(+) create mode 100644 .gitignore create mode 100644 Schoolweek2/src/com/conderscapus/week2/Agedasi.java create mode 100644 Schoolweek2/src/com/conderscapus/week2/Week2Example.java create mode 100644 schoolweek3/src/com/coderscampus/objects/Human.java create mode 100644 schoolweek3/src/com/coderscampus/objects/RunnableClass.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8adabbc --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.classpath +*.project diff --git a/Schoolweek2/src/com/conderscapus/week2/Agedasi.java b/Schoolweek2/src/com/conderscapus/week2/Agedasi.java new file mode 100644 index 0000000..4cda91f --- /dev/null +++ b/Schoolweek2/src/com/conderscapus/week2/Agedasi.java @@ -0,0 +1,24 @@ +package com.conderscapus.week2; + +import java.util.Scanner; +public class Agedasi { + + public static void main(String[] args) { + + Scanner scanner = new Scanner(System.in); + System.out.println("Type in any name: "); + String name = scanner.nextLine(); + System.out.println("you typed in: age"); + String age = scanner.nextLine(); + + if (name.equals("mera") && age.equals("60")) { + System.out.println("let's go"); + }else { + System.out.println("Hello: " + name); + } + + scanner.close(); + + } + +} diff --git a/Schoolweek2/src/com/conderscapus/week2/Week2Example.java b/Schoolweek2/src/com/conderscapus/week2/Week2Example.java new file mode 100644 index 0000000..1789bb8 --- /dev/null +++ b/Schoolweek2/src/com/conderscapus/week2/Week2Example.java @@ -0,0 +1,33 @@ +package com.conderscapus.week2; + +public class Week2Example { + + public static void main(String[] args) { + int age = 18; + + if(age > 20) { + System.out.println("you are an adualt"); + } + if(age > 67) { + System.out.println("you are a senior"); + + }else if (age >= 15){ + System.out.println("you are a teenager"); + }else if (age == 12) { + System.out.println("yout are a per-teen"); + }else { + System.out.println("you are a child"); + } + + String output = "your age is " + age; + + System.out.println("your age is 18"); + + if(output.equals("your age is 18")) { + System.out.println("yay you can vote"); + }else if (output == "your age is 21") { + System.out.println("yay you can dring / gamble"); + } + } + +} diff --git a/schoolweek3/src/com/coderscampus/objects/Human.java b/schoolweek3/src/com/coderscampus/objects/Human.java new file mode 100644 index 0000000..8cfd3ac --- /dev/null +++ b/schoolweek3/src/com/coderscampus/objects/Human.java @@ -0,0 +1,9 @@ +package com.coderscampus.objects; + +public class Human { + + String gender; + String name; + String heigth; + String weight; +} diff --git a/schoolweek3/src/com/coderscampus/objects/RunnableClass.java b/schoolweek3/src/com/coderscampus/objects/RunnableClass.java new file mode 100644 index 0000000..74c13e9 --- /dev/null +++ b/schoolweek3/src/com/coderscampus/objects/RunnableClass.java @@ -0,0 +1,17 @@ +package com.coderscampus.objects; + +public class RunnableClass { + + public static void main(String[] args) { + // class -> blueprint for a object + //object -> Noun, it's an instant of a class + + // Date type. variable name, assignment operation + int someNumber = 39; + + Human merhawi = new Human(); + + + } + +}