KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > StringConcatInts


1 public class StringConcatInts {
2
3     public static void main(String JavaDoc[] args) {
4
5         System.out.println("Should be ten: " + (9+1));
6         System.out.println("Should be nintyone: " + 9+1);
7
8         int i = 9;
9         System.out.println("Should be ten: "+ (i+1));
10     }
11
12 }
13
Popular Tags