Java Code Example