Write a java program that asks a user to input a positive integer value. The program must keep on asking for an input if the user enters a non-positive integer value. Once a valid input is accepted, your program must output an appropriate message whether the value is a prime number or not.
Finally, the user will be asked if he/she would like to try again. It must be noted that the user will be repeatedly asked for an input until a valid response (pressing ‘Y’ or ‘y’ for YES; and ‘N’ or ‘n’ for NO) is entered.
Solve this problem using modular approach.

i am simply frustrated because of getting errors like everywhere. been doin this for like 2hours or so.
i would appreciate it if someone could fix this for me. if possible.. ASAP. because i need it soon. thanks

The Scanner class does not have a method named: charAt()
kbd is a Scanner object.
You need to use a Scanner class method to read the user's input into a variable where the code can examine what was read.