Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1. package kolol1;
  2.  
  3. public class KoloL1 {
  4.  
  5.  
  6.     public static void main(String[] args) {
  7.         JakasKlasa obiekt1 = new JakasKlasa();
  8.         for(int i=0; i<10; i++){
  9.             if(obiekt1.getLiczba() == 0){
  10.                 obiekt1.setLiczba(1);
  11.             }
  12.             else {
  13.                 obiekt1.setLiczba(0);
  14.             }
  15.         }
  16.        
  17.     }    
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement