linkedin-skill-assessments-quizzes icon indicating copy to clipboard operation
linkedin-skill-assessments-quizzes copied to clipboard

Java Q87

Open kgoedert opened this issue 1 year ago • 7 comments

Isn't something missing in the code of this question? Because as it is, I think the correct answer should be "The code does not compile", instead of "A runtime exception is thrown"

kgoedert avatar Oct 01 '23 13:10 kgoedert

Hi @kgoedert what do you think about this? issue in Line - sb.deleteCharAt(0).insert(0, "H")." World!"; correct way - The correct way to append a string to a StringBuilder in Java is to use the append method, Like this - sb.deleteCharAt(0).insert(0, "H").append(" World!");

Cretus-iosDev avatar Oct 01 '23 14:10 Cretus-iosDev

For me, now the code is correct and would be consistent with the answer marked as correct

kgoedert avatar Oct 02 '23 09:10 kgoedert

can you please assign me this issue to solve as I have clearly understood the issue? Also I have a good knowledge in java.

Rishabh-mikku avatar Oct 05 '23 12:10 Rishabh-mikku

Hi, I have worked with java and I can solve this problem. I will take a look into this.

Rohxn16 avatar Oct 06 '23 05:10 Rohxn16

@kgoedert can u please take a look into this pr and merge this if possible

Rohxn16 avatar Oct 06 '23 10:10 Rohxn16

@kgoedert I have pretty much experience in Java. can I work on this?

c99SRS avatar Oct 15 '23 18:10 c99SRS

This is has got merged! So its better to close it to stop creating confusions!!

parthasdey2304 avatar Oct 17 '23 07:10 parthasdey2304