Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package xddddd;
- /**
- *
- * @author Szymek
- */
- public class Xddddd {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- // TODO code application logic here
- }
- int[] PESEL(String[][] tab2d)
- {
- int[] tab1d = new int[tab2d.length];
- int wartosc;
- String pesel;
- for (int i = 0; i < tab2d.length; i++)
- {
- pesel = tab2d[i][0];
- wartosc = pesel.charAt(0) + 3*pesel.charAt(1)+3*pesel.charAt(2); //itd, nie chce mi sie pisac tego calego
- if(wartosc%10 == 0)
- tab2d[i][1] = "POPRAWNY";
- else tab2d[i][1] = "BłęDY";
- tab1d[i] = wartosc;
- }
- return tab1d;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement