fork download
  1. class Main {
  2. public static void main(String[] args) {
  3. int x = -100;
  4. x >>= 2;
  5. System.out.println(x);
  6. x = 100;
  7. x >>= 2;
  8. System.out.println(x);
  9. x = -100;
  10. x >>>= 2;
  11. System.out.println(x);
  12. x = 100;
  13. x >>>= 2;
  14. System.out.println(x);
  15. }
  16. }
  17.  
  18. //http://pt.stackoverflow.com/q/192874/101
Success #stdin #stdout 0.06s 32316KB
stdin
Standard input is empty
stdout
-25
25
1073741799
25