So dann hier mal der Java Code: