Advertisement
Guest User

firma

a guest
May 13th, 2016
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.67 KB | None | 0 0
  1. package praca;
  2.  
  3. import java.util.Scanner;
  4.  
  5.  
  6. public class firma {
  7.  
  8.     static Scanner scanIn = new Scanner(System.in);
  9.     public pracownik[] tworz_obiekt(int i) {
  10.         pracownik[] praconik = new pracownik[100];
  11.         while(i!='k') {
  12.        
  13.         System.out.println("Podaj numer indeksu talblicy");
  14.         i=scanIn.nextInt();
  15.         System.out.println("Podaj imie ");
  16.         praconik[i].setImie(scanIn.nextLine());
  17.         System.out.println("Podaj nazwisko ");
  18.         praconik[i].setNazwisko(scanIn.nextLine());
  19.         System.out.println("Podaj nazwe specjalości ");
  20.         praconik[i].setStanowisko(scanIn.nextLine());
  21.         System.out.println("Podaj nr indeksu ");
  22.         //k
  23.         }
  24.         return praconik;
  25.        
  26.     }
  27.    
  28.        
  29.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement