Skip to content

REPL - stage 2#5

Open
Miffka wants to merge 10 commits into
hyperskill:masterfrom
Miffka:master
Open

REPL - stage 2#5
Miffka wants to merge 10 commits into
hyperskill:masterfrom
Miffka:master

Conversation

@Miffka
Copy link
Copy Markdown

@Miffka Miffka commented Sep 25, 2018

Main.java, Main.class as well as idea settings added.

Copy link
Copy Markdown
Contributor

@swsms swsms left a comment

Choose a reason for hiding this comment

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

Good solution! Congratulations!

Comment thread src/Main.java
}

public static boolean answerToServiceCommand(String input){
boolean stop_iteration = false;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This name looks like a Python variable rather than Java (underscode instead of camelCase notation).

Comment thread src/Main.java Outdated
String[] numbers_and_operators = input.split("\\s+");
int ans = 0;
int number = 0;
int n_minuses = 0;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The same thing with naming

Comment thread src/Main.java
System.out.println(ans);
}

public static void main(String[] args) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Your solution looks pretty good! But it is not very good idea to add Main.class and out directory to GitHub.

denderov added a commit to denderov/repl that referenced this pull request Mar 10, 2019
@denderov denderov mentioned this pull request Mar 10, 2019
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.

2 participants