Advertisement
Olivki

shud work

Mar 24th, 2013
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1.     public String getLongestString() {
  2.     String result = "";
  3.     for (int var0 = 0; var0 < chatLines.size(); var0++)
  4.         if (((ChatLine) chatLines.get(var0)).getChatLineString().isEmpty())
  5.         result = (String) chatLines.get(var0);
  6.         else if (result.length() > ((ChatLine) chatLines.get(var0))
  7.             .getChatLineString().length())
  8.         result = (String) chatLines.get(var0);
  9.     return result;
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement