Category "stringbuilder"

How do I reverse a string in java by creating a new temporary string?

What's the error in the following code? I am not able to identify it shows the index 0 out of bounds exception. public class stringBuilders{ public static v

Fortify's denial of service problem in stringbuilder in java

Fortify client gives the error and recommendations for string builder, problem code: StringBuilder sb=new StringBuilder(); sb.append(request.getParameter("i

Why all the test cases are not getting passed for the below question?

The Coding Question which I am trying to solve is this. I tried to solve but not all the test cases passed I am not able to find what could be the reason? Iden