-
Notifications
You must be signed in to change notification settings - Fork 0
creating a new index.html to demonstrate my code #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
merhawi7
wants to merge
2
commits into
main
Choose a base branch
from
dev
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| *.classpath | ||
| *.project |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| # Example Git Project | ||
|
|
||
| This project is an example project for the study of demonstrating how to use Git / GitHub. | ||
| This project is an example project for the study of demonstrating how to use Git / GitHub. | ||
|
|
||
| I hope you enjoy it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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(); | ||
|
|
||
| } | ||
|
|
||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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"); | ||
| } | ||
| } | ||
|
|
||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title>Example of my project</title> | ||
|
|
||
| </head> | ||
| <body> | ||
| <h1>Welcome to my project</h1? | ||
| </body> | ||
| </html> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| package com.coderscampus.objects; | ||
|
|
||
| public class Human { | ||
|
|
||
| String gender; | ||
| String name; | ||
| String heigth; | ||
| String weight; | ||
| } |
17 changes: 17 additions & 0 deletions
17
schoolweek3/src/com/coderscampus/objects/RunnableClass.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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(); | ||
|
|
||
|
|
||
| } | ||
|
|
||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice code you could add more staphs to you code