|
Last change
on this file since 3103 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:
758 bytes
|
| Line | |
|---|
| 1 | /*--------------------------------------------------------------------------*/
|
|---|
| 2 | /* File name : err13.java */
|
|---|
| 3 | /* : */
|
|---|
| 4 | /* Cause : Conversion from zero to String type is not correct. */
|
|---|
| 5 | /* : */
|
|---|
| 6 | /* Message : NG : test */
|
|---|
| 7 | /*--------------------------------------------------------------------------*/
|
|---|
| 8 |
|
|---|
| 9 | public class err13 {
|
|---|
| 10 | public static void main(String[] args) {
|
|---|
| 11 | String s = "test";
|
|---|
| 12 | s += 0;
|
|---|
| 13 |
|
|---|
| 14 | if ( s.equals("test0") ) {
|
|---|
| 15 | System.out.println("OK");
|
|---|
| 16 | } else {
|
|---|
| 17 | System.out.println("NG : " +s);
|
|---|
| 18 | }
|
|---|
| 19 | }
|
|---|
| 20 | }
|
|---|
| 21 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.