@@ -0,0 +1,771 @@
+package com.samovich.cs6310;%0A%0A/**%0A * Filename StringSemantic%0A * Created by Valery Samovich%0A * Written on 1/15/17%0A */%0Apublic class StringSemantic %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        // variables%0A        String s = %22foo%22;%0A        System.out.println(s);%0A        System.out.println(%22%22);%0A%0A        System.out.println(%221st example:%22);%0A        // 1st example%0A        if (s.equals(%22foo%22))%7B%0A            System.out.println(%22equals%22);%0A        %7D else %7B%0A            System.out.println(%22not equals%22);%0A        %7D%0A        System.out.println(%22%22);%0A%0A        System.out.println(%222nd example:%22);%0A        // 2nd example%0A        if (%22foo%22.equals(s))%7B%0A            System.out.println(%22equals%22);%0A        %7D else %7B%0A            System.out.println(%22not equals%22);%0A        %7D%0A%0A    %7D%0A%7D%0A

Add example with semantic difference for string