Skip to content
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

[Wei Yang] iP #58

Open
wants to merge 69 commits into
base: master
Choose a base branch
from
Open

Conversation

MeLoveCarbs
Copy link

No description provided.

j-lum and others added 15 commits August 6, 2019 15:25
Add toolVersion block in to Gradle code sample to prevent errors.
Gradle defaults to an empty stdin which results in runtime exceptions
when attempting to read from `System.in`. Let's add some sensible
defaults for students who may still need to work with the standard
input stream.
Add configuration for console applications
The OpenJFX plugin expects applications to be modular and bundled
with jlink, resulting in fat jars that are not cross-platform. Let's
manually include the required dependencies so that shadow can package
them properly.
Copy link

@bennychanya bennychanya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job for your code. It looks well implemented 👍 🥇
Looks like you put in a lot of effort and know your stuff

@@ -1,10 +1,153 @@
import java.awt.*;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to only import library that are necessary for your code

System.out.println("Here are the tasks in your list:");
}
for (int i=0; i<userList.size(); i++) {
Integer index = i+1;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the naming be more specific? e.g. listIndex

ArrayList<String> words = new ArrayList<String>(Arrays.asList(userInput.split(" ")));
words.remove(0);
return new Todo (String.join(" ", words));
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great way of initialization for your tasks

}
userInput = in.nextLine();
}
System.out.print(lines + "Bye. Hope to see you again soon!\n" + lines);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be clearer to get the userInput in another method rather than putting it in your botResponse method?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants