-
Notifications
You must be signed in to change notification settings - Fork 185
[Yeo Zong Yao] IP #171
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
yeozongyao
wants to merge
48
commits into
nus-cs2113-AY2324S2:master
Choose a base branch
from
yeozongyao:master
base: master
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
[Yeo Zong Yao] IP #171
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
55f9f9f
docs/README.md: Tweak document template
f837ddb
Add Gradle support
a6f7324
Bump gradle and lib version
Eclipse-Dominator 440bad9
Change 'Duke' Placeholder to 'Yeos'
yeozongyao 6d6071d
Add horizontal lines.
yeozongyao 5897041
Add horizontal lines.
yeozongyao cc01601
Level-1
yeozongyao d9d386e
Level-1
yeozongyao fb20b40
Level-2
yeozongyao 2da20d1
Level-2
yeozongyao 3425e67
Merge remote-tracking branch 'origin/master'
yeozongyao d61aaa3
Level-3
yeozongyao ae17d19
Merge remote-tracking branch 'origin/master'
yeozongyao 1fef908
Changed the code based on Java coding standards
yeozongyao 0106932
Merge remote-tracking branch 'origin/master'
yeozongyao cce81fa
Level-4
yeozongyao 655ce9f
Merge remote-tracking branch 'origin/master'
yeozongyao 2c4ebac
A-CodeQuality
yeozongyao 9684c65
Merge remote-tracking branch 'origin/master'
yeozongyao ab88f22
Merge commit 'cc016013d33c0b83df57a9e4bc02cb9ebbbe6667' into HEAD
yeozongyao 80cd39e
Merge branch 'add-gradle-support' of ssh://github.com/yeozongyao/ip
yeozongyao b787f04
Merge commit 'ab88f22df977049924ac4b606a718969b7fb9deb'
yeozongyao 991de29
added exceptions handling
yeozongyao b49dc3f
Creating packages
yeozongyao 330611e
branch-A-Packages
yeozongyao d6d8dc9
branch-A-Packages
yeozongyao f7ddf53
Level 6 and Level 7
yeozongyao a059b5c
A-Collections
yeozongyao 3f08658
created Jar file
yeozongyao d2c9526
A-More OOP: Ui, Storage, Parser, TaskList
yeozongyao 777309e
Level-8 - Local Date Time
yeozongyao f193e7f
Level-9: Find
yeozongyao b7bb72d
A-JavaDoc: Java Documentation
yeozongyao 8cd1308
Merge pull request #2 from yeozongyao/branch-Level-8
yeozongyao 0b9ad82
Merge pull request #4 from yeozongyao/branch-Level-9
yeozongyao 62786b8
Merge pull request #3 from yeozongyao/A-JavaDoc
yeozongyao e16d759
README update
yeozongyao 812207f
Bug fixes
yeozongyao b57825a
Bug fixes based on Jai's comments
yeozongyao 36eed93
bug fixes
yeozongyao 8dfb28f
bug fixes
yeozongyao f64b365
Level-8
yeozongyao 9e141c0
Merge pull request #5 from yeozongyao/branch-Level-8
yeozongyao e43250c
A-JavaDoc
yeozongyao 6255b88
Merge branch 'master' into A-JavaDoc
yeozongyao 72ac68e
Merge pull request #6 from yeozongyao/A-JavaDoc
yeozongyao cb64cbc
A-JavaDoc
yeozongyao 6ee0f70
Merge pull request #7 from yeozongyao/A-JavaDoc
yeozongyao 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 |
|---|---|---|
| @@ -1,9 +1,21 @@ | ||
| import java.util.Scanner; | ||
| public class Yeos { | ||
| public static void main(String[] args) { | ||
| Scanner scanner = new Scanner(System.in); | ||
| String greeting = "Hello! I'm Yeos, your personal chatbot!\n" | ||
| + "What can I do for you today?\n"; | ||
| String bye = "Bye. Hope to see you again soon!\n"; | ||
| String line = "_____________________________________________________________________\n"; | ||
| System.out.println(line + greeting + line + bye); | ||
| System.out.println(line + greeting + line); | ||
|
|
||
| while(true) { | ||
| String input = scanner.nextLine(); | ||
| if (input.equals("bye")) { // Check if the input is "bye" | ||
| System.out.println(line + bye + line); | ||
| break; | ||
| } | ||
| System.out.println(line + input + "\n" + line); | ||
| } | ||
| scanner.close(); | ||
| } | ||
| } | ||
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.
Code is easy to read and appropriate indentations throughout the code. Good job!