Guest User

Untitled

a guest
Mar 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. Scaner vvod = new Scaner(System.in);
  2. int x = vvod.nextInt();
  3. if(x!=0 || x!=1){
  4. //sout("Eror");
  5. throw Exceptionl;
  6. }
  7. Или можно воспользоваться assert(x!=0 || x!=1)
Add Comment
Please, Sign In to add comment