java logic
java