Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- String[][] tabliczka = new String[3][3];
- tabliczka[0][0]="AaaaABb";
- tabliczka[1][0]="AaaaABb";
- tabliczka[2][0]="AaaaABb";
- konwertuj(tabliczka);
- }
- public static int[] konwertuj (String[][] tab){
- int[] tablicka = new int[tab.length];
- for (int i=0;i<tab.length;i++){
- String x = tab[i][0];
- String wyraz = "";
- int licznik=0;
- for(int j=0;j<x.length();j++){
- licznik++;
- char c = x.charAt(j);
- if((char)(c)>96){
- c = (char)(c-32);}
- String cc = Character.toString(c);
- wyraz +=cc;
- }
- tab[i][1] = wyraz;
- System.out.println(tab[i][1]);
- tablicka[i] = licznik;
- System.out.println(licznik);
- }
- return tablicka;
- }
Add Comment
Please, Sign In to add comment