Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Drukarka {
- private UrzadzenieBiurowe uB=new UrzadzenieBiurowe();
- public void wlaczone() {
- uB.wlaczone();
- }
- public void pracuje(int w) {
- uB.pracuje(w);
- }
- public void sprawne() {
- uB.sprawne();
- }
- public static void main(String[] args) {
- int k=0;
- Drukarka d1= new Drukarka();
- for(int i=0; i<4; i++){
- d1.pracuje(k);
- if(k==0)
- k=1;
- else
- k=0;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement