Moved existing examples to Java