answersLogoWhite

0

You could use the fully qualified name of the class instead of just "Scanner".

For example:

java.util.Scanner s = new Scanner(System.in);

The only reason for using the "import" statement is so that you don't have to use the fully qualified name for commonly used classes.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How could a program use a class Scanner without importing it in java programming?

You can use the full name of the class. In your case example: java.util.Scanner scanner = new java.util.Scanner(System.in);


How do you run a java program which has import javalang commands?

Just like any other java program. Actually speaking importing the java.lang package is not required. But, importing it doesnt make any difference. The program will work just fine with or without those statements


How do you program a regency scanner model R4020?

Programming scanner r1040


What is exporting files?

When you move files from one program to another what you doing is exporting the file from one program and importing it into the other program


What software packages allow video to be imported from a Sony DCR camcorder to a PC?

ArcSoft ShowBiz 5 is one such software package that not only allows for importing at the best quality but also editing of the video. This program has a cost of $80.


How do you program a uniden bearcat BC 370 CRS scanner?

easy to program


Dxg-566v HD camcorder wont import videos To My Computer?

How are you trying to import the video? With Windows Movie Maker, Windows Photo Gallery (or other program)? Windows Photo Gallery should work for importing your hd camcorder video. Windows Movie Maker is rather persnickety with importing (my experience anyhow). Open Windows Photo Gallery and click on File, Import from Scanner or Camera.


Is scanner a hardware or software?

A scanner is both hardware and software, the device itself is hardware (all devices are hardware) but the driver(a program) that runs it is software.


How do you program remote for Chevy colbalt?

You need a gm scanner to program a factory gm remote fobs.


What program do shonen jump artists use?

Pen and paper and scanner.


What is the function of a word processing package?

what is a word processing package


Integrated applications package?

An integrated applications package is a package that contains applications for the same program. The package contains two or more programs for a specific need.