Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package imdeadinside;
- import java.util.*;
- public class Imdeadinside {
- public static void main(String[] args) {
- int minim;
- int maxim;
- int zakresik;
- Scanner min= new Scanner(System.in);
- System.out.println("Podaj wartosc minimalna zakresu: ");
- Scanner max = new Scanner(System.in);
- System.out.println("Podaj wartosc maksymalna zakresu: ");
- if (min.hasNextInt()){
- minim=min.nextInt();
- }
- else if (max.hasNextInt()){
- maxim=max.nextInt();}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement