-
Notifications
You must be signed in to change notification settings - Fork 10
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
Task 1,2,3 done #4
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 + ">"; |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please add null check
s.length() == 0
should return empty string.
public static String comboString(String s1, String s2) | ||
|
||
|
||
{if (s1 == null) |
There was a problem hiding this comment.
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.
No description provided.