Skip to content

Commit 1076e8e

Browse files
authored
Add files via upload
1 parent 295baa0 commit 1076e8e

73 files changed

Lines changed: 446 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Demo19.class

607 Bytes
Binary file not shown.

Demo19.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class Demo19{
2+
public static void main(String args[]){
3+
4+
int x=0xac;
5+
6+
System.out.printf("x=%d\n",x);
7+
System.out.printf("x=%o\n",x);
8+
System.out.printf("x=%x\n",x);
9+
}
10+
}

Demo20.class

607 Bytes
Binary file not shown.

Demo20.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class Demo20{
2+
public static void main(String args[]){
3+
4+
int x=0x89;
5+
6+
System.out.printf("x=%d\n",x);
7+
System.out.printf("x=%o\n",x);
8+
System.out.printf("x=%x\n",x);
9+
}
10+
}

Demo21.class

607 Bytes
Binary file not shown.

Demo21.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class Demo21{
2+
public static void main(String args[]){
3+
4+
int x=0x2bc;
5+
6+
System.out.printf("x=%d\n",x);
7+
System.out.printf("x=%o\n",x);
8+
System.out.printf("x=%x\n",x);
9+
}
10+
}

Demo22.class

714 Bytes
Binary file not shown.

Demo22.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class Demo22{
2+
public static void main(String args[]){
3+
4+
int x=0b1011;
5+
6+
System.out.println(x);
7+
System.out.printf("x=%d\n",x);
8+
System.out.printf("x=%o\n",x);
9+
System.out.printf("x=%x\n",x);
10+
System.out.printf("x=%X\n",x);
11+
System.out.printf("x=%h\n",x);
12+
}
13+
}

Demo23.class

679 Bytes
Binary file not shown.

Demo23.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
class Demo23{
2+
public static void main(String args[]){
3+
4+
int x=0b110011;
5+
6+
System.out.println(x);
7+
System.out.printf("x=%d\n",x);
8+
System.out.printf("x=%o\n",x);
9+
System.out.printf("x=%h\n",x);
10+
System.out.printf("x=%x\n",x);
11+
12+
}
13+
14+
}

0 commit comments

Comments
 (0)