codegen: handle exceptions of a method
[mate.git] / tests / Strings1.java
1 package tests;
2
3 public class Strings1 {
4         public static void main(String []args) {
5                 String a = "abc";
6                 String b = "abc";
7                 String c = "wtf";
8
9                 if (a == b) {
10                         System.out.println("result: okay :-)");
11                 } else {
12                         System.out.println("result: bad :-(");
13                 }
14
15                 if (a != c) {
16                         System.out.println("result: okay :-)");
17                 } else {
18                         System.out.println("result: bad :-(");
19                 }
20
21                 if (a == c) {
22                         System.out.println("result: bad :-(");
23                 } else {
24                         System.out.println("result: okay :-)");
25                 }
26         }
27 }