summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/err13.java
blob: d946d61048823dcc95ea620defed9fd78a0bdc49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*--------------------------------------------------------------------------*/
/* File name  : err13.java                                             */
/*            :                                                             */
/* Cause      : Conversion from zero to String type is not correct.         */
/*            :                                                             */
/* Message    : NG : test                                                   */
/*--------------------------------------------------------------------------*/

public class err13 {
	public static void main(String[] args) {
		String s = "test";
		s += 0;

		if ( s.equals("test0") ) {
			System.out.println("OK");
		} else {
			System.out.println("NG : " +s);
		}
	}
}