leniuch

konwertuj

Feb 25th, 2020
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.57 KB | None | 0 0
  1. public class konwertuj {
  2.  
  3.        static int[] konw(String[][] tab){
  4.          int[] dlugosci = new int[tab.length];
  5.         for(int i=0;i<tab.length;i++){
  6.             String temp = tab[i][0];
  7.             char[] czar= temp.toCharArray();
  8.                 for(int j=0;j<czar.length;j++){
  9.                 if(czar[j]>90) czar[j]-=32;  }
  10.               temp="";
  11.               for(char a:czar){
  12.                   temp+=a;}      
  13.                          
  14.             tab[i][1] = temp;
  15.             dlugosci[i] = temp.length();
  16.         }
  17.            
  18.     return dlugosci;}
Add Comment
Please, Sign In to add comment