Moved java examples and added scala examples