JavaPatternMatching/examples/OldExamples/hama/StoreSomethingParMain.jav

15 lines
420 B
Plaintext
Raw Normal View History

2013-10-18 11:33:46 +00:00
public class MStoreSomethingParMain
{
public static void main(String[] args)
{
StoreSomethingParCon<String> a = new StoreSomethingParCon("I'm a String");
System.out.println(a.get());
a.set("new String");
System.out.println(a.get());
StoreSomethingPar<String> b = new StoreSomethingPar();
b.set("I'm var b");
System.out.println(b.get());
b.set("new b");
System.out.println(b.get());
}
}