SNHU_ZyBooks_IT-145 3.11.1.docx - Challenge Activity 3.11.1...

This preview shows page 1 - 2 out of 2 pages.

Challenge Activity 3.11.1: String with digitimport 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();/* Your solution goes here

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture