Last change
on this file was 1389, checked in by bird, 21 years ago |
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
320 bytes
|
Line | |
---|
1 | public class PR6729
|
---|
2 | {
|
---|
3 | static int attr = 0x9;
|
---|
4 |
|
---|
5 | public static void main(String [] args) {
|
---|
6 | boolean res = ( ( 1 << attr ) & 0x1000 ) != 0 ;
|
---|
7 | System.out.println("this should be "+res+": "+isWhite());
|
---|
8 | }
|
---|
9 |
|
---|
10 | public static boolean isWhite() {
|
---|
11 | return ( ( 1 << attr ) & 0x1000 ) != 0 ;
|
---|
12 | }
|
---|
13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.