python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Remove blank lines in StringBuffer
After reading text file that contain words and numbers, I split it into words and numbers and left with blank lines in both splited words and numbers.
I try to remove the blank lines but the code did'...
Najibu Tanimu
Votes: 0
Answers: 2
Why the following code use String and StringBuffer in the same line?
set.add(new String(s) + (ch == 0 ? "" : ch) + new StringBuffer(new String(s)).reverse());
I encountered this code from written by someone. It is java code.
s is a char[].
set is a String se...
wangge
Votes: 0
Answers: 2
If else condition with StringBuffer
I'm trying to make a If else condition to check if a current data exists on the database using a JSON request on a java application consuming a Rest Webservice.
So, I want to receive a boolean or make...
Luís Ambrozin
Votes: 0
Answers: 1