Questions tagged as 'java'

0
answers

Show the return value of a process using a stream

I recently developed a code that returned the number 0 when I called a process and it ended correctly. My question is how I could do the same thing but using a Stream stream since it is developed with a waitFor () and with a simple sout. I suspe...
asked by 04.11.2018 / 21:01
1
answer

Save button that serves to update

I appeal to you since I have a question and can not think of anything to solve it. I comment I'm doing a CRUD in Java with the BD Mysql. I have done almost all the buttons, I just need to update. It turns out that I want the Save button to als...
asked by 04.11.2018 / 21:23
0
answers

why does my algorithm only work for the first values of n? (ACM problem baggage 2014)

The problem is simple, order 2n (3 ≤ n ≤ 100) pairs of letters BABABABA by moving blocks of letters (you always have to move a pair of continuous letters to two continuous empty spaces) to arrive at an expected result AAAA .. ..ABBBBB ... BBBB s...
asked by 04.11.2018 / 20:59
2
answers

How to check if there is a number in an array?

I have this arrangement. The letters move only if the next position is a zero and my question is how can I check if the next position is a zero? // Part of my code System.out.println("¿A que numero desea moverla?");...
asked by 04.11.2018 / 20:40
1
answer

How to pass inputs to a process with OutputStream?

Hello, good night, everyone After spending some time researching and finding nothing about the topic, or maybe you just do not know how to look I come to ask a question about an exercise I have in class. The exercise says that I must gener...
asked by 29.10.2018 / 20:23
0
answers

Fill data with a ComboBox from MySQL

I am trying to make the information load when the first option is selected a project that was stored in a database and that at the time of selecting a project the respective information below is selected depending on the previously stored inform...
asked by 27.10.2018 / 05:00
0
answers

Problem loading Applet in servlet

Well, I have a problem loading an applet into an html document, which I think is in the path in the html applet tag in the code parameter. I do not know if the route is, either, within the web project, example: "package.clase.class" or the abs...
asked by 01.11.2018 / 21:31
0
answers

Get the values of a calculator and use the logical operators

Hello sorry, it is very easy to ask my question but I can not solve it, I have a calculator that tries to do the basic operations but, I do not get the second value to perform the operation, I do not understand very well because. Next the code....
asked by 01.11.2018 / 20:09
0
answers

get Firebase data and place it in RecyclerView

I am getting Firebase data, since I have debugged and in the getValue the data appears without any problem, but when I want to assign it to homes, the fields are null This is the main code where I get the data from Firebase and try to add it...
asked by 26.10.2018 / 06:06
1
answer

Data between two javafx windows

I am developing a javafx application, in which I run into the following problem: I am trying to fill out a form in which one of the fields I want to fill in bringing the data from another window, in this second window I only show a tableview....
asked by 26.10.2018 / 06:37