Skip to content
Snippets Groups Projects
Commit 8f8e7cf3 authored by Villsty's avatar Villsty
Browse files

changed keyPressed vs KeyPressed

parent 52547076
No related branches found
No related tags found
No related merge requests found
......@@ -46,20 +46,6 @@ public class SimpleShell implements CommandLineInterface {
// TODO 7-8-9: Install core commands SimpleShell supports (pwd, ls, cd)
}
// TODO 2: rename method to fit new interface, annotate with @Override
// Note: methods with @Override generally do not need javadoc comments,
// since the javadoc comment is inherited. You should hence remove the
// javadoc comment here unless there is something special about this
// implementation. You should remove to-do comments when you are done.
//test
/**
* Called when a key is pressed.
*
* @param key The key that was pressed
*/
@Override
public void keyPressed(char key) {
if (key == '\n') {
......@@ -71,13 +57,6 @@ public class SimpleShell implements CommandLineInterface {
}
}
// TODO 3: rename method to fit new interface, annotate with @Override
/**
* Get the text which the terminal should display
*
* @return the text
*/
@Override
public String getScreenContent() {
String s = "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment