Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Still getting error with red X oject Run Wndow Helo clipse-workspace - Ass 3/sre/Assignment .Assignment3.java public class Assignment3 15 17 18 19 20e // print

Still getting error with red "X" image text in transcribed
oject Run Wndow Helo clipse-workspace - Ass 3/sre/Assignment .Assignment3.java public class Assignment3 15 17 18 19 20e // print below is my Assignment3 Ioboootokooceopoeoo public static void main(Stringl] args) 21 22 823inport Java.util.Scanner 24 225 Scanner in new Scanner(System.in) 26 27 28 29 30 31 32 System.out print ("Enter a number(1-9999): "): int num in.nextInt) int thousands num/1000; int hundreds (nums1800)/10 int int ones -(num10); 34 35 36 37 38 ten s {num100)/10; = 29 systen.out.printin("Thousands): "t thousands): 41 42 System.out.print In("Hundred(s): "+ hundreds): 42 Systen.out.print Inf "Ten(s): ", tens): 45 System.out.print In("One(s): "+ ones): Problems Javado Declaration @ console 3 sterminateds Chap2Project (Java Applicationl /Libraryava/JavaVrtualMachines/jak-11.0.2,jok/Contents/Homebin Exception in thread "main" java. Lang.Error: Unresolved compilation problems: Syntax error on token import", assert expected java utit.Scanner: cannot be resolved to a variable Scanner:cannot be resolved to a type Scanner cannot be resolved to a type at Chap2Project,maintchan2Proiectelava:24)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions