Skip to content
Open
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
Jan 7, 2024
f837ddb
Add Gradle support
May 24, 2020
a6f7324
Bump gradle and lib version
Eclipse-Dominator Aug 5, 2023
440bad9
Change 'Duke' Placeholder to 'Yeos'
yeozongyao Jan 25, 2024
6d6071d
Add horizontal lines.
yeozongyao Jan 25, 2024
5897041
Add horizontal lines.
yeozongyao Jan 25, 2024
cc01601
Level-1
yeozongyao Jan 31, 2024
d9d386e
Level-1
yeozongyao Jan 31, 2024
fb20b40
Level-2
yeozongyao Jan 31, 2024
2da20d1
Level-2
yeozongyao Jan 31, 2024
3425e67
Merge remote-tracking branch 'origin/master'
yeozongyao Jan 31, 2024
d61aaa3
Level-3
yeozongyao Jan 31, 2024
ae17d19
Merge remote-tracking branch 'origin/master'
yeozongyao Feb 1, 2024
1fef908
Changed the code based on Java coding standards
yeozongyao Feb 1, 2024
0106932
Merge remote-tracking branch 'origin/master'
yeozongyao Feb 1, 2024
cce81fa
Level-4
yeozongyao Feb 1, 2024
655ce9f
Merge remote-tracking branch 'origin/master'
yeozongyao Feb 8, 2024
2c4ebac
A-CodeQuality
yeozongyao Feb 8, 2024
9684c65
Merge remote-tracking branch 'origin/master'
yeozongyao Feb 8, 2024
ab88f22
Merge commit 'cc016013d33c0b83df57a9e4bc02cb9ebbbe6667' into HEAD
yeozongyao Feb 15, 2024
80cd39e
Merge branch 'add-gradle-support' of ssh://github.com/yeozongyao/ip
yeozongyao Feb 15, 2024
b787f04
Merge commit 'ab88f22df977049924ac4b606a718969b7fb9deb'
yeozongyao Feb 15, 2024
991de29
added exceptions handling
yeozongyao Feb 16, 2024
b49dc3f
Creating packages
yeozongyao Feb 16, 2024
330611e
branch-A-Packages
yeozongyao Feb 22, 2024
d6d8dc9
branch-A-Packages
yeozongyao Feb 22, 2024
f7ddf53
Level 6 and Level 7
yeozongyao Feb 22, 2024
a059b5c
A-Collections
yeozongyao Feb 22, 2024
3f08658
created Jar file
yeozongyao Feb 22, 2024
d2c9526
A-More OOP: Ui, Storage, Parser, TaskList
yeozongyao Feb 29, 2024
777309e
Level-8 - Local Date Time
yeozongyao Mar 2, 2024
f193e7f
Level-9: Find
yeozongyao Mar 2, 2024
b7bb72d
A-JavaDoc: Java Documentation
yeozongyao Mar 2, 2024
8cd1308
Merge pull request #2 from yeozongyao/branch-Level-8
yeozongyao Mar 2, 2024
0b9ad82
Merge pull request #4 from yeozongyao/branch-Level-9
yeozongyao Mar 2, 2024
62786b8
Merge pull request #3 from yeozongyao/A-JavaDoc
yeozongyao Mar 2, 2024
e16d759
README update
yeozongyao Mar 2, 2024
812207f
Bug fixes
yeozongyao Mar 2, 2024
b57825a
Bug fixes based on Jai's comments
yeozongyao Mar 2, 2024
36eed93
bug fixes
yeozongyao Mar 2, 2024
8dfb28f
bug fixes
yeozongyao Mar 2, 2024
f64b365
Level-8
yeozongyao Mar 2, 2024
9e141c0
Merge pull request #5 from yeozongyao/branch-Level-8
yeozongyao Mar 2, 2024
e43250c
A-JavaDoc
yeozongyao Mar 2, 2024
6255b88
Merge branch 'master' into A-JavaDoc
yeozongyao Mar 2, 2024
72ac68e
Merge pull request #6 from yeozongyao/A-JavaDoc
yeozongyao Mar 2, 2024
cb64cbc
A-JavaDoc
yeozongyao Mar 2, 2024
6ee0f70
Merge pull request #7 from yeozongyao/A-JavaDoc
yeozongyao Mar 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/main/java/Yeos.java
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();
}
}

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!