Question: Trying to figure out what is wrong with this code. File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Multiple1 -

Trying to figure out what is wrong with this code.

Trying to figure out what is wrong with this code. File EditView Navigate Source Refactor Run Debug Profile Team Tools Window Help Multiple1- Apache NetBeans IDE 13 Search (Ctri+1) X VO > Assignment1 Source

File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Multiple1 - Apache NetBeans IDE 13 Search (Ctri+1) X VO > Assignment1 Source History KE . . 27 5 50 768 95 .0 03 &BarChart Multiple package multiplel; vo Source Packages 63 multiple Multiple.java public class Multiplel { > Test Packages Libraries 79 public static void main (String args) { Test Libraries boolean run = true; 6 Multiple1 10 Source Packages 11 while (run == true) { multiple 1 12 System. out. print ("Enter one number:") ; Multiple1.java Scanner input = new Scanner (System. in) ; > Test Packages 14 > 2Libraries 15 int numl = input . nextInt () ; Test Libraries 16 int num2 = input . nextInt () ; &OddIntergers 17 &Part2 18 System. out. println ("Do you want to enter another pair (y) ?") ; 19 String a = input . next () ; Multiple1 - Navigator X 20 21 boolean result = isMultiple (numl, num2) ; Members V 22 Do Multiple1 23 if (result == true) { Multiple 10 X YesOrNo(String a) : boolean Output - Multiple1 (run) X isMultiple(int x, int y) : boolean main(String args) run : Exception in thread "main" java. lang . RuntimeException: Uncompilable code - cannot find symbol symbol : class Scanner location: class multiplel . Multiplel at multiplel . Multiplel . main (Multiplel . java: 1) C: \\Users\\evely\\AppData\\Local\\NetBeans\\Cache\\13\\executor-snippets\ un. xml : 111: The following error occurred while executing this line: C: \\Users\\evely\\AppData\\Local\\NetBeans\\Cache\\13\\executor-snippets\ un. xml : 94: Java returned: 1 BUILD FAILED (total time: 2 seconds) 4:1 INS Windows (CRLF 3:34 PM Type here to search 53F Cloudy ~ DD 4/9/2022 EFile Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Multiple1 - Apache NetBeans IDE 13 Search (Ctri+1) X VO > Assignment1 Source History &BarChart 24 System . out. printIn (numl + " is a multiple of " + num2) ; Multiple 25 vo Source Packages 26 else{ 63 multiple 27 System. out. printIn (num1 + " is not a multiple of " + num2) ; 28 Multiple.java 29 > Test Packages if ( YesorNo (a) ) { 30 break; Libraries 31 Test Libraries 32 6 Multiple1 33 Source Packages 34 public static boolean YesOrNo (String a) { multiple 1 35 Multiple1.java if (a . equals ("y") ) > Test Packages 37 return false; > 2Libraries 38 else if (a . equals ("n") ) Test Libraries 39 return true; 40 else &OddIntergers 41 return true; &Part2 42 43 public static boolean isMultiple (int x , int y) Multiple1 - Navigator X 44 Members V if ( x 8 y = = 0 | | y $ x = = 0) Do Multiple1 46 return true; Lac Multiple 10 X YesOrNo(String a) : boolean Output - Multiple1 (run) X isMultiple(int x, int y) : boolean main(String args) run : Exception in thread "main" java. lang . RuntimeException: Uncompilable code - cannot find symbol symbol : class Scanner location: class multiplel. Multiplel at multiplel . Multiplel. main (Multiplel . java: 1) C: \\Users\\evely\\AppData\\Local\\NetBeans\\Cache\\13\\executor-snippets\ un. xml : 111: The following error occurred while executing this line: C: \\Users\\evely\\AppData\\Local\\NetBeans\\Cache\\13\\executor-snippets\ un. xml : 94: Java returned: 1 BUILD FAILED (total time: 2 seconds) 4:1 INS Windows (CRLF 3:34 PM Type here to search 53F Cloudy ~ DOG 4/9/2022 EFile Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Multiple1 - Apache NetBeans IDE 13 Search (Ctri+1) X VO > Assignment1 Source History &BarChart If (a . equals ("y") ) Multiple 37 return false; 38 vo Source Packages else if (a . equals ("n") ) 39 63 multiple return true; 40 else Multiple.java 41 return true; > Test Packages 42 Libraries 43 public static boolean isMultiple (int x , int y) Test Libraries 44 6 Multiple1 if ( x 8 y = = 0 | | y $ x = = 0) Source Packages return true; multiple 1 else Multiple1.java return false; > Test Packages > 2Libraries Test Libraries &OddIntergers &Part2 Multiple1 - Navigator X Members V Do Multiple1 Multiple 10 X YesOrNo(String a) : boolean Output - Multiple1 (run) X isMultiple(int x, int y) : boolean main(String args) run : Exception in thread "main" java. lang . RuntimeException: Uncompilable code - cannot find symbol symbol : class Scanner location: class multiplel. Multiple1 at multiplel . Multiplel . main (Multiplel . java: 1) C: \\Users\\evely\\AppData\\Local\\NetBeans\\Cache\\13\\executor-snippets\ un. xml : 111: The following error occurred while executing this line: C: \\Users\\evely\\AppData\\Local\\NetBeans\\Cache\\13\\executor-snippets\ un. xml : 94: Java returned: 1 BUILD FAILED (total time: 2 seconds) 4:1 INS Windows (CRLF 53F Cloudy ~ DD ( 3:35 PM Type here to search 4/9/2022 E

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!