Advertisement
Swaster

Pralka.java

Jan 17th, 2025
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Pralka extends Urzadzenie {
  2.     private static int wybranyProgram = 0;
  3.  
  4.     public int ustawProgram(int program) {
  5.         if(program >= 1 && program <= 12) {
  6.             wybranyProgram = program;
  7.         } else {
  8.             wybranyProgram = 0;
  9.         }
  10.         return wybranyProgram;
  11.     }
  12. }
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement