blob: 29ec2f2b21aa14792ce0bb0ce9f08837ae017a42 [file] [log] [blame]
Mads Ager418d1ca2017-05-22 09:35:49 +02001// Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
2// for details. All rights reserved. Use of this source code is governed by a
3// BSD-style license that can be found in the LICENSE file.
4
5public class Arithmetic {
6
7 public static void main(String[] args) {
8 bitwiseInts(12345, 54321);
9 }
10
11 public static void bitwiseInts(int x, int y) {
12 System.out.println(x & y);
13 System.out.println(x | y);
14 System.out.println(x ^ y);
15 System.out.println(~x);
16 }
17
18}