Hi, I am a beginner in Java. Can anyone help me write a program where
Program 1: Takes input from keyboard from user and check whether it is a number
If yes then passes it to Program2 and Program3 esle return message to user saying entered is not a number.
Program 2: Check number for even or odd and return value to Program 1 which inturn display to user.
Program 3: Check number for prime and returns confirmation to program 1 which inturn display to user.
( if programs checks for 0 to 9 is fine, program1, 2 & 3 should be in different files, I mean three '.java' files.
I know that all can be written in one program but I want to learn and understand how to write into multiple codes/projects which can interact)
Case1: if user enters 7
Output should be
User entered is a number
Number entered by user: odd
Number entered by user: Prime