Questions tagged as 'scanner'

0
answers

Browser barcode scanner

The scenario is as follows: I'm creating an application on Ionic 2, however I need it also be accessed through a URL in a browser, such as Chrome. One of the requirements of this application is that it performs barcode reading. I tried t...
asked by 15.06.2017 / 16:55
1
answer

File Reading in Java [closed]

I'm trying to read a file ( arquivo.txt ) that is in the same folder as my class, but I run the code an error appears that did not find the file. Could someone check what's wrong? Thanks in advance. My arquivo.txt : Industria;2;...
asked by 06.06.2017 / 17:05
2
answers

How to use an existing variable as a counter

My goal is to get the alphabet letter that the user typed in and show, how many times he typed, the letters that preceded him and his successors, do you understand? Here's what I did: static int v; static String[] Alfa = {"A", "B", "C", "D", "...
asked by 15.10.2016 / 03:59
2
answers

Error converting String to Numbers in Java

In my last post ( do / while double-repeat the expression ) had an overlapping input problem using the Scanner class, and according to the links placed in the response, we can not use nextLine () after nextInt (). Now I'm doing another algori...
asked by 18.01.2018 / 00:19
1
answer

NoSuchElementException error when capturing data entry with Scanner

I'm having problems with data entries using Scanner with JOptionPane working fine. Exception in thread "main" java.util.NoSuchElementException at java.util.Scanner.throwFor(Unknown Source) at java.util.Scanner.next(Unknown Source) at j...
asked by 02.06.2017 / 03:03
3
answers

Why does the Scanner return an error in something that is expected?

Note that I typed a number, a text, and a number, as you request. import java.util.Scanner; class Ideone { public static void main (String[] args) { Scanner entrada = new Scanner(System.in); int valor1 = entrada.nextInt();...
asked by 14.12.2017 / 16:01
0
answers

Clean Fujitsu Fi-7160 scanner buffer in C #

I'm working on a Company project, C # Windows Form and I'm still new to the dot net platform. I would like to know with my friends, if there is any way I can clean the buffer of the Fujitsu Fi-7160 Scanner, after scanning about 1500 sheets, beca...
asked by 01.07.2018 / 19:44
0
answers

Java compilation error (Eclipse) using class Scanner, beginner problem

I'm starting to study Java now by the book "Java as Programming 10 Ed" and I'm having a hard time compiling this book code in Eclipse. Follow the code below Could anyone tell me how to make this code compile? Note: JDK 9, Java 9, Eclips...
asked by 15.05.2018 / 15:37
1
answer

Create more than one variable using the scanner command

I tried a google search but I did not get an answer that would lighten my head, I'm starting to study java and I came across the following problem: Create a Java program that reads 10 names and their salaries from the keyboard and then shows...
asked by 22.12.2017 / 14:32
1
answer

scanning file with scanner

I would love to know if anyone can help me with this code below, in my application the user will frequently upload some files and they have two information, number and name separated by -> ; but in the file I simulate some possible problems like...
asked by 11.04.2018 / 22:21