subject

In java; set hasdigit to true if the 3-character passcode contains a digit. if you could tell me why the code i wrote isn't working i'd be .import java. util. scanner; public class checkingpasscodes {public static void main (string [] args) {scanner scnr = new scanner(system. in); boolean hasdigit; string passcode; hasdigit = false; passcode = scnr. next(); let0 = userinput. charat(0); let1 = userinput. charat(1); let2 = userinput. charat(2); if ((character. isdigit(let0) || character. isdigit(let1) || character. isdigit(let2)){hasdigit = true; }if (hasdigit) {system. out. println("has a digit."); }else {system. out. println("has no digit."); }

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 16:00
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
question
Computers and Technology, 23.06.2019 18:40
Johnson enterprises uses a computer to handle its sales invoices. lately, business has been so good that it takes an extra 3 hours per night, plus every third saturday, to keep up with the volume of sales invoices. management is considering updating its computer with a faster model that would eliminate all of the overtime processing.
Answers: 2
question
Computers and Technology, 24.06.2019 23:50
What is your fav video game currently: a) roblox b) fortnite c) apex legends d) pubg
Answers: 2
question
Computers and Technology, 25.06.2019 01:40
The instantiation of an endpoint in a potential tcp connection is know as
Answers: 1
You know the right answer?
In java; set hasdigit to true if the 3-character passcode contains a digit. if you could tell me wh...
Questions
question
Mathematics, 29.10.2020 19:20
question
Mathematics, 29.10.2020 19:20
question
Mathematics, 29.10.2020 19:20
question
Mathematics, 29.10.2020 19:20
question
History, 29.10.2020 19:20
Questions on the website: 13722360