bluej - Prompting user for password and then checking it in Java -


using code second , third videos, change them prompt user information. on password video (2nd one), once write code prompt user 4 character password, see if can print “wrong, try again” message if entered incorrectly. (hint, use if else).

video 2: ap computer science if statements (comparing strings)
video 3: ap computer science if statements "multiple" boolean expressions

i need finding way prompt user password , saying if right or wrong (can use jscanner).

asking people watch videos not idea , should try upload basic code can guide you. did basic skim , believe need import this

import java.util.scanner 

look documentation scanner learn how use it. check if password correct, basic loop goes ( have looked up)

if (password correct){     } else{     message wanted print } 

Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -