Wrox Programmer Forums
|
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 30th, 2008, 10:22 PM
Registered User
 
Join Date: Jan 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Scanners

I'm having to build a program and I'm having a problem with the scanner. I'm using Eclipse by the way. this is what I have to build:

"Write an application that asks user to enter a five digit number as input, then it separates the number into its individual digits and prints the digits separated from one another by a tab space. Assume that the user enters the correct number of digits.

For example, if the user types in the number 12345, the program should print
“1 2 3 4 5.”

I've built the program but Eclipse is telling me 'the Scanner cannot be resolved to a type." I dont know what this means so please help! Also, I can't seem to figure out how to seperate it by a tab. I can seperate by spaces. Any help would be appreciated.
 
Old January 31st, 2008, 12:11 AM
jomet
Guest
 
Posts: n/a
Default

Hi,

include some code portion to better understand ur pblm.
however u can use '\t' to include tab space
something like,
System.out.println(var +"\t");
in a for loop, where 'var' as a seprated digit

regds,

jomet.
---------------------------------------------
Once you start a working on something,
dont be afraid of failure and dont abandon it.
People who work sincerely are the happiest.
 
Old January 31st, 2008, 10:35 AM
Registered User
 
Join Date: Jan 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

this is what my source code looks like:

package problem7;

public class Five

{
    // main method begins execution of Java application
    public static void main( String args[] )
    {

        Scanner input = new Scanner( System.in );

        int userInput; // User input... Number to be separated.

        System.out.print( "Enter a five digit integer: " ); // prompt user to provide five-digit integer input
        userInput = input.nextInt(); // read and store user input in a variable
 
Old February 1st, 2008, 12:27 AM
jomet
Guest
 
Posts: n/a
Default

Hi,

Use
System.out.print(first + "\t" +second+ "\t" + third + "\t" +fourth + "\t" +fifth);

System.out.println() is also there.
see the diff by trying it.

instead of "\t" u can also use " " required spaces between double quotes.

if any error occurs, let me know.

this is a free eBook on Java
http://www.mindview.net/Books/TIJ/

Cheers,
Jomet

jomet.
---------------------------------------------
Once you start a working on something,
dont be afraid of failure and dont abandon it.
People who work sincerely are the happiest.
 
Old February 1st, 2008, 12:38 AM
jomet
Guest
 
Posts: n/a
Default

Hi,
More on string concatenation,

Strings are more commonly concatenated with the + operator, as in

    "Hello," + " world" + "!"

which results in

    "Hello, world!"

The + operator is widely used in print statements. For example:

    String string1 = "saw I was ";
    System.out.println("Dot " + string1 + "Tod");

which prints

    Dot saw I was Tod

from
http://java.sun.com/docs/books/tutor...a/strings.html

another
http://www.otherwise.com/Lessons/StringsInJava.html

Cheers,


jomet.
---------------------------------------------
Once you start a working on something,
dont be afraid of failure and dont abandon it.
People who work sincerely are the happiest.
 
Old March 17th, 2010, 02:59 AM
Registered User
 
Join Date: Oct 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to amandaboard
Default Optical Mark Reader

We are the leading <Automatic> OMR Scanner Manufacturer in China , Our main products are: Optical Mark Reader (OMR), OMR Info-forms, and OMR software!

Optical Mark Reader (OMR) is a high-tech data input device integrated optical and electrical technology. It is a powerful tool for speedy automatic data capture, thousands of data bytes per second, several hundreds of times faster than manpower, especially it can work for a long time without break.

Application fields: school examinations, archives management, survey , data statistics and evaluation etc.

All of our OMR products have passed on FCC, CE ,RoHs and other dozens of certificates home and abroad!
Our OMR applied for the examinations of the Ministry of Education in Vietnam for three years and is named to the perfect educational products by them. Our products are imported by Indian Exam Committee, and are very popular in Turkish large exams. Now, more and more products appear in Japan and USA, and other countries.
NANHAO OMR Series products have been exported to America,Turkey, Vietnam, Mexico, Poland, Korea, Spain, Russia, Thailand, Pakistan, Sudan, Cameroon, India and so on.

For more information please visit our website: http://www.omrchina.com

We sincerely invite you as our agent in your country .

Looking forward to cooperate with you to sell our products to your market!

And please kindly recommend our products to all your friends who maybe interested in the OMR SCANNER!

Waiting for your reply!

Best Regards

Sincerely

Patricia
NANHAO GROUP ,NANHAO (Beijing) Science and Technology Co.,Ltd
Fax:0086-3182335002
Mob:0086-13932852039
Skype: patricia12080101
MSN: [email protected]
e-mail : [email protected]
Web: http://www.omrchina.com
 
Old March 17th, 2010, 03:01 AM
Registered User
 
Join Date: Oct 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to amandaboard
Default

We are the leading <Automatic> OMR Scanner Manufacturer in China , Our main products are: Optical Mark Reader (OMR), OMR Info-forms, and OMR software!

Optical Mark Reader (OMR) is a high-tech data input device integrated optical and electrical technology. It is a powerful tool for speedy automatic data capture, thousands of data bytes per second, several hundreds of times faster than manpower, especially it can work for a long time without break.

Application fields: school examinations, archives management, survey , data statistics and evaluation etc.

All of our OMR products have passed on FCC, CE ,RoHs and other dozens of certificates home and abroad!
Our OMR applied for the examinations of the Ministry of Education in Vietnam for three years and is named to the perfect educational products by them. Our products are imported by Indian Exam Committee, and are very popular in Turkish large exams. Now, more and more products appear in Japan and USA, and other countries.
NANHAO OMR Series products have been exported to America,Turkey, Vietnam, Mexico, Poland, Korea, Spain, Russia, Thailand, Pakistan, Sudan, Cameroon, India and so on.

For more information please visit our website: http://www.omrchina.com

We sincerely invite you as our agent in your country .

Looking forward to cooperate with you to sell our products to your market!

And please kindly recommend our products to all your friends who maybe interested in the OMR SCANNER!

Waiting for your reply!

Best Regards

Sincerely

Patricia
NANHAO GROUP ,NANHAO (Beijing) Science and Technology Co.,Ltd
Fax:0086-3182335002
Mob:0086-13932852039
Skype: patricia12080101
MSN: [email protected]
e-mail : [email protected]
Web: http://www.omrchina.com

Key words : omr data capture, omr data procession, omr investigation machine, omr data input device, omr scoring machine, omr school testing machine, optical mark recognition, OMR data solutions, OMR form sheet processing, OMR objective answer sheet reader, OMR answer sheet processing, OMR Test Scoring Machine, omr scanner, copier, printer, High speed scanners, normal scanners, Barcode scanners, optical mark reader, High Volume Scanners, Low Volume Scanners, optical character recognition, documenti, software ocr, servizio data entry, riconoscimeto di caratteri OCR ICR OMR CHR BCR Lecture Optique de Marques,Reconnaissance optique de marques
 
Old March 17th, 2010, 03:03 AM
Registered User
 
Join Date: Oct 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to amandaboard
Default Optical Mark reader

We are the leading <Automatic> OMR Scanner Manufacturer in China , Our main products are: Optical Mark Reader (OMR), OMR Info-forms, and OMR software!

Optical Mark Reader (OMR) is a high-tech data input device integrated optical and electrical technology. It is a powerful tool for speedy automatic data capture, thousands of data bytes per second, several hundreds of times faster than manpower, especially it can work for a long time without break.

Application fields: school examinations, archives management, survey , data statistics and evaluation etc.

All of our OMR products have passed on FCC, CE ,RoHs and other dozens of certificates home and abroad!
Our OMR applied for the examinations of the Ministry of Education in Vietnam for three years and is named to the perfect educational products by them. Our products are imported by Indian Exam Committee, and are very popular in Turkish large exams. Now, more and more products appear in Japan and USA, and other countries.
NANHAO OMR Series products have been exported to America,Turkey, Vietnam, Mexico, Poland, Korea, Spain, Russia, Thailand, Pakistan, Sudan, Cameroon, India and so on.

For more information please visit our website: http://www.omrchina.com

We sincerely invite you as our agent in your country .

Looking forward to cooperate with you to sell our products to your market!

And please kindly recommend our products to all your friends who maybe interested in the OMR SCANNER!

Waiting for your reply!

Best Regards

Sincerely

Patricia
NANHAO GROUP ,NANHAO (Beijing) Science and Technology Co.,Ltd
Fax:0086-3182335002
Mob:0086-13932852039
Skype: patricia12080101
MSN: [email protected]
e-mail : [email protected]
Web: http://www.omrchina.com

Key words : omr data capture, omr data procession, omr investigation machine, omr data input device, omr scoring machine, omr school testing machine, optical mark recognition, OMR data solutions, OMR form sheet processing, OMR objective answer sheet reader, OMR answer sheet processing, OMR Test Scoring Machine, omr scanner, copier, printer, High speed scanners, normal scanners, Barcode scanners, optical mark reader, High Volume Scanners, Low Volume Scanners, optical character recognition, documenti, software ocr, servizio data entry, riconoscimeto di caratteri OCR ICR OMR CHR BCR Lecture Optique de Marques,Reconnaissance optique de marques
 
Old March 17th, 2010, 03:04 AM
Registered User
 
Join Date: Oct 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to amandaboard
Default OMR50FS

Specifications:
Model: OMR50FS
Reading mode: single-face and read one time
Feeding mode: automatic
Speed: 8000pcs/hour (based on A4)
Form size: 130mm×50mm-300mm×210mm
Form weight: 70-150g/m2
Track spacing: 4.23mm
Marking tools: No.2 or softer pencils,carbon pens
Mark shapes: Rectangles,ovals and circles
Error rate: ≤1×10-7
Mark choice: single choice, multiple choice and BCD code
Format: 26 kinds, each has 255 commands at most
Interface: RS232, USB
Host: PC, Laptop
Weight: 8kg
Operating system: Win2000,Win2003,Win XP
Power supply: AC100-240V, 50-60Hz
Dimensions: 560mm×170mm×400mm
Operating condition: temperature 0-40°C, humidity≤90%, no erosive gas

Key words : omr data capture, omr data procession, omr investigation machine, omr data input device, omr scoring machine, omr school testing machine, optical mark recognition, OMR data solutions, OMR form sheet processing, OMR objective answer sheet reader, OMR answer sheet processing, OMR Test Scoring Machine, omr scanner, copier, printer, High speed scanners, normal scanners, Barcode scanners, optical mark reader, High Volume Scanners, Low Volume Scanners, optical character recognition, documenti, software ocr, servizio data entry, riconoscimeto di caratteri OCR ICR OMR CHR BCR Lecture Optique de Marques,Reconnaissance optique de marques

Hebei Nanhao Information Industry Co., Ltd.
Tel: 0086-318-13932852039
Fax: 0086-318-2335002
http://www.omrchina.com/
http://www.nhboard.net/
MSN: pangqingye(at)hotmail.com
Mail: pangqingye(at)yeah.net
 
Old March 17th, 2010, 03:05 AM
Registered User
 
Join Date: Oct 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to amandaboard
Default Optical mark reader50FS

Specifications:
Model: OMR50FS
Reading mode: single-face and read one time
Feeding mode: automatic
Speed: 8000pcs/hour (based on A4)
Form size: 130mm×50mm-300mm×210mm
Form weight: 70-150g/m2
Track spacing: 4.23mm
Marking tools: No.2 or softer pencils,carbon pens
Mark shapes: Rectangles,ovals and circles
Error rate: ≤1×10-7
Mark choice: single choice, multiple choice and BCD code
Format: 26 kinds, each has 255 commands at most
Interface: RS232, USB
Host: PC, Laptop
Weight: 8kg
Operating system: Win2000,Win2003,Win XP
Power supply: AC100-240V, 50-60Hz
Dimensions: 560mm×170mm×400mm
Operating condition: temperature 0-40°C, humidity≤90%, no erosive gas

Key words : omr data capture, omr data procession, omr investigation machine, omr data input device, omr scoring machine, omr school testing machine, optical mark recognition, OMR data solutions, OMR form sheet processing, OMR objective answer sheet reader, OMR answer sheet processing, OMR Test Scoring Machine, omr scanner, copier, printer, High speed scanners, normal scanners, Barcode scanners, optical mark reader, High Volume Scanners, Low Volume Scanners, optical character recognition, documenti, software ocr, servizio data entry, riconoscimeto di caratteri OCR ICR OMR CHR BCR Lecture Optique de Marques,Reconnaissance optique de marques

Hebei Nanhao Information Industry Co., Ltd.
Tel: 0086-318-13932852039
Fax: 0086-318-2335002
http://www.omrchina.com/
http://www.nhboard.net/
MSN: pangqingye(at)hotmail.com
Mail: pangqingye(at)yeah.net





Similar Threads
Thread Thread Starter Forum Replies Last Post
Scanners mark.roworth Pro VB 6 1 September 16th, 2011 09:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.