Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int maxLength( ArrayList<String> aLst ){
- int max = 0;
- for( int i = 0; i < aLst.size(); i++){
- if( aLst.get(i).length() > max ) max = aLst.get(i).length();
- }
- return max;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement