Skip to content

Conversation

tetyanko
Copy link

No description provided.

@didva didva self-assigned this Nov 25, 2016
Copy link

@didva didva left a comment

Choose a reason for hiding this comment

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

Please go on with other tasks and fix current comments.

@@ -2,6 +2,13 @@

public class Task1 {
public static String makeTags(String tag, String text) {
return "";

return "<" + tag + ">" + text + "<" + "/" + tag + ">";
Copy link

Choose a reason for hiding this comment

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

Please use String.format()

@@ -3,6 +3,15 @@

public class Task2 {
public static String firstTwo(String s) {
return "";

if (s.length() == 0)
Copy link

Choose a reason for hiding this comment

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

  1. Please add null check
  2. s.length() == 0 should return empty string.

public static String comboString(String s1, String s2)


{if (s1 == null)
Copy link

Choose a reason for hiding this comment

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

Your solution won't work for s2 == null. Please fix it.

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