Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String getLongestString() {
- String result = "";
- for (int var0 = 0; var0 < chatLines.size(); var0++)
- if (((ChatLine) chatLines.get(var0)).getChatLineString().isEmpty())
- result = (String) chatLines.get(var0);
- else if (result.length() > ((ChatLine) chatLines.get(var0))
- .getChatLineString().length())
- result = (String) chatLines.get(var0);
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement