Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package zad5;
- import java.lang.Exception;
- public class WektoryRoznejDlugosciException extends Exception {
- private int dlugosc1;
- private int dlugosc2;
- public WektoryRoznejDlugosciException(int dl1, int dl2,
- String message) {
- super(message);
- this.dlugosc1 = dl1;
- this.dlugosc2 = dl2;
- }
- public int getDlugoscPierwszego(){
- return dlugosc1;
- }
- public int getDlugoscDrugiego(){
- return dlugosc2;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement