Welcome to the forum! Please read this topic
to learn how to post code in code or highlight tags and other useful info for new members.
What you describe is an online Java syntax or style checker (like Checkstyle). Since it's an open source project (I think), source code for Checkstyle is probably available.
You ask if such a project would be difficult. Determining the difficulty requires a better understanding of your abilities. I would classify the project moderately to impossibly difficult for someone with limited Java programming experience.