Questions tagged as 'java'

1
answer

Help with this JAVA Problem [closed]

package problema.pkg7.pkg2; import java.util.Scanner; public class Problema72 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); Scanner input = new Scanner (System.in); int num1;...
asked by 23.08.2017 / 09:26
1
answer

How can I send to print in a class, several variables that I enter and have in another class? [closed]

The program is for a rental of bicycles, I enter the time desired by the client and his name to authorize the rent, and in the other class I send to print the variables of the time, the name of the client and the total amount of income The main...
asked by 08.09.2017 / 18:07
2
answers

How to separate a string string by spaces? [duplicate]

In Java code, I want to know how I can separate a text string for each space that exists in it.     
asked by 01.09.2017 / 02:22
1
answer

Divide a string and put it as attributes of my object

I have a Person class like this: class persona { private String dni; private String nombre; private String apel1; private String apel2; private String ciudad; private String pais; public persona(String dni, String...
asked by 08.07.2017 / 19:43
1
answer

Switch from XML or XSD to Java class? [closed]

Good! I need to pass an 'XSD' document, or XML to java classes and vice versa, it has to be using SAX, does anyone know how?     
asked by 04.10.2017 / 16:39
3
answers

Fill array by keyboard within a [closed] range

I can not demand an entry range when filling an array, I show you: public static void llenar(int []sueldos, String [] nombres){ for(int i = 0; i<nombres.length; i++){ imprimir("Ingrese el nombre del empleado nu...
asked by 29.10.2017 / 16:01
2
answers

Is it advisable to use two constructors in Java?

hello friends I have a doubt that for me is something I do not understand, builders initialize the objects of a class, but what is the purpose of the overload of builders, in general because there is that term in java ?, because it is possible t...
asked by 16.06.2017 / 00:43
1
answer

Help load ComboBox JavaFX FXML

Well I have a problem and I want to load a ComboBox with data returned by a database and here everything is fine. The thing is that when executing the method which would fill the ComboBox throw compile error. This is the error:...
asked by 16.12.2016 / 19:03
2
answers

Problem with the IF in java

classmates I was starting with a new class and I was surprised how the if it does not work with whole numbers that is to say it does not compare correctly the greater than and the smaller that The code is as follows import java.util.Scanner;...
asked by 02.09.2018 / 00:41
1
answer

Cognitive Services, Face API Microsoft

I am developing an android app consuming services from the Microsoft Face API. The question arises of how to obtain or see where the groups of people and people in the different groups are kept. Or if someone knows if this data can be consulted...
asked by 31.08.2018 / 12:45