Questions tagged as 'java'

1
answer

Save parameters of a method in a variable

I have the following code that is part of a class that handles the events of a frame : public void actionPerformed(ActionEvent ae) { if(ae.getSource()== NuevoEstudiante.btnGuardar){ String nombre= nuevoEstudiante.txtNombre.getText();...
asked by 07.09.2016 / 19:00
1
answer

I want to read lines from a file and it does not work for me JAVA

Very good guys! I'm trying to read lines of a type ".txt" even though I have it in .test, it's the same. What I have to do is read the first 6 lines, and then read the lines one by one (every time I enter ENTER I go to the next line) until there...
asked by 27.12.2018 / 00:07
3
answers

PreparedStatement does not check if it is Null Java

I'm doing a program that looks for a license plate in the database, and if it does not find it executes a sentence, and if there already exists the license plate that executes another one, but always (exists or not) executes the one that says no...
asked by 22.12.2018 / 23:20
1
answer

Array identification problem

I was doing a java method to which I passed a license plate for a truck. This method, when I found a truck with that license plate, was going to record its arrival time, and it was going to mark if it had arrived on time or not (this last part w...
asked by 14.12.2018 / 10:09
1
answer

JAVAFX with css implementation

I have this Java code from javafx public class FormularioGeneral extends Application { @Override public void start(Stage primaryStage) throws Exception { TabPane tabPanel = new TabPane(); Tab tab = new Tab()...
asked by 14.12.2018 / 11:55
1
answer

Exception in the main when entering case 2 [closed]

It gives me exception error, eclipse tells me that it is the line that is marked (**) I have been trying for days and I do not get anything. Thanks public static void main(String[] args) { boolean menu = true; System.out.printl...
asked by 27.12.2018 / 17:23
1
answer

Matrix with sublocks in Java

Good, I have a problem with a matrix in java, the issue is that I have to make a matrix 10X10 where within it has different sublocks all the outer edge is block A, and the interior minus 16 central cells is the block B, those 16 central ce...
asked by 15.12.2018 / 19:25
1
answer

Java environment variables

enter the description of the image hereintroduce the description of the image here Forgive if the question is very elementary. I had version 6 of java installed on my pc. When trying to start eclipse Oxygen did not work with that versio...
asked by 16.12.2018 / 12:11
2
answers

Declare the second dimension of a stepped array

I have to do a stepped array, but I do not know how to do it so that at the time of asking the columns of the array are declared within the loop, the program should do this as many times as players put it. Exit of the program Enter the num...
asked by 16.12.2018 / 12:02
1
answer

how to order numbers from highest to lowest with lambda expression

ArrayList<Integer> numeros = new ArrayList<Integer>(); numeros.add(3); numeros.add(90); List<Integer> elementoRepete; elementoRepete = numeros .stream() .filter(p -> p......) .coll...
asked by 19.12.2018 / 21:12