|
Last change
on this file since 3127 was 2, checked in by bird, 23 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:
805 bytes
|
| Line | |
|---|
| 1 | /*--------------------------------------------------------------------------*/
|
|---|
| 2 | /* Name : N19990310_3 */
|
|---|
| 3 | /* : */
|
|---|
| 4 | /* Cause : Evaluation order miss, when make integer array. */
|
|---|
| 5 | /* : */
|
|---|
| 6 | /* Message : NG:[4]-->[1] */
|
|---|
| 7 | /*--------------------------------------------------------------------------*/
|
|---|
| 8 |
|
|---|
| 9 | public class N19990310_3 {
|
|---|
| 10 | public static void main(String[] args) {
|
|---|
| 11 |
|
|---|
| 12 | int x = 4;
|
|---|
| 13 |
|
|---|
| 14 | int ary[][] = new int[x][x=1];
|
|---|
| 15 |
|
|---|
| 16 | if ( ary.length == 4 ) {
|
|---|
| 17 | System.out.println("OK");
|
|---|
| 18 | } else {
|
|---|
| 19 | System.out.println("NG:[4]-->[" +ary.length+ "]");
|
|---|
| 20 | }
|
|---|
| 21 | }
|
|---|
| 22 | }
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.