Questions tagged as 'scanner'

2
answers

Problem with user inputs

I have the following code: public class FlagApplication { private Scanner keyboard; .... private void insertNewRegistry(){ System.out.println("insira os dados de pessoa: nome, peso, altura, idade, sexo e bi."); St...
asked by 18.10.2015 / 12:30
1
answer

Delphi Scanner + Scanner

Somebody knows some component or way to integrate an application made in Delphi XE2 + Scanner, I need to save what is being digitized.     
asked by 16.05.2018 / 14:29
2
answers

Is it possible to store user inputs by Scanner Class in a database?

IhaveanapplicationmadeinJava,andIneedtostoretheuser'scadastralinformationinthedatabase:cpf,password,name,address,phoneSystem.out.println("Digite seu CPF"); cpf = ler.nextLine(); System.out.println("Senha: "); senha = ler.nextLine();...
asked by 29.06.2016 / 16:07
1
answer

Scanner.nextLine does not get information after Scanner.nextInt [duplicate]

I'm having trouble with this code, I'm starting programming, this is just an activity for practice. I do not understand why when executing the code the field 'Campus' does not allow the input of the information. Already on the 'Registration' f...
asked by 12.11.2016 / 01:17
2
answers

Reading data from a file with Java

Good evening, I have a text file like the image I need to read this file and grab the data and save it to an object array. For example, I have a SALA object, this object has the following attributes: number = room || north = north ||...
asked by 07.06.2017 / 02:38
1
answer

Collecting links in a text file

I have a problem in my program where I have to get links throughout the text file. I used regex to collect the links, however, only a few lines are captured (the file has approximately 3500 rows) and some links. Note: The text file is from Whats...
asked by 14.11.2016 / 16:48
2
answers

Skip file when entering some Exception

Good afternoon Below is a method that I use to read certain files in a folder. The problem is this. If the folder has 50 files (or 60, or 70, or 80 ...) and the method is reading a "defective" file (one of the files that fall in Exeception...
asked by 16.01.2017 / 19:56
2
answers

Barcode Scanner for iOS, Android and Windows Phone (PhoneGap)

Good morning, For months I've been looking for a plugin or function that will allow me to scan a barcode through my app developed in PhoneGap for iOS, Android and Windows Phone. Does anyone know of a plugin or tutorial that really works? I re...
asked by 21.09.2015 / 10:52
0
answers

How to find out which services are running on a port with python?

I wanted to integrate my question with this code: #!/usr/bin python3 # coding: utf-8 import argparse import socket import os import sys def Logo(): print (''' ______ ____ __________ ___ / / /_ \/ /__ ___/ __ /_/ / __ / _____ \ _...
asked by 29.06.2018 / 23:52
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