SHARE
TWEET

someClass

a guest Jul 23rd, 2019 79 in 1 day
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class someClass
  2. {
  3.     private int min=0;
  4.  
  5.  
  6.     public void getMin(ArrayList<String> getArr)
  7.     {
  8.         this.min = getArr.get(0).length();// запишется ли передаваемое значение в min?
  9.  
  10.         for (int i = 1;i<getArr.size()-1;i++)
  11.         {
  12.             if(this.min < getArr.get(i).length())
  13.             {
  14.                 this.min = getArr.get(i).length();
  15.             }
  16.         }
  17.     }
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top