Advertisement
Guest User

Untitled

a guest
Nov 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. package imdeadinside;
  2. import java.util.*;
  3. public class Imdeadinside {
  4.  
  5.  
  6. public static void main(String[] args) {
  7. int minim;
  8. int maxim;
  9. int zakresik;
  10. Scanner min= new Scanner(System.in);
  11. System.out.println("Podaj wartosc minimalna zakresu: ");
  12. Scanner max = new Scanner(System.in);
  13. System.out.println("Podaj wartosc maksymalna zakresu: ");
  14. if (min.hasNextInt()){
  15. minim=min.nextInt();
  16. }
  17. else if (max.hasNextInt()){
  18. maxim=max.nextInt();}
  19.  
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement