Questions tagged as 'java-8'

1
answer

Structure on Threads in Java Swing

I make my first consultation available and in advance I appreciate the future answers. To start I have a form that contains 2 jcombobox : jcbSerie and jcbPartido . The form integrates Runnable() In the form varia...
asked by 24.05.2018 / 16:37
1
answer

Send text to My Band 2 from Android BLE

Does anyone know how to send text to the MiBand 2 from android? So far I am able to send numbers but not strings and I do not know how to do. @Override public void onServicesDiscovered(final BluetoothGatt gatt, int status)...
asked by 02.06.2017 / 09:17
2
answers

Return of two values in JAVA

I am working on a decimal to binary converter and vice versa all this must go within the same method the problem is that I do not know how to return the binary value and the decimal one I leave the code waiting for some help package numerosBin...
asked by 24.07.2018 / 01:36
3
answers

Compare hours in Java

I am learning Java and I try to make a program that controls the hours of a working day. The idea is: I ask the user for a start time (HH: mm) (of his work for example) and an end time (HH: mm). I keep that in order to be able to work with it la...
asked by 11.06.2016 / 20:13
1
answer

My program does not ask for the second Java value

I need help with my code in java, I'm doing a menu with functional options but with a graphical interface, when I click on the options, for example, adding, I'm asking for the first value but the second one does not ask for it and the program ar...
asked by 05.06.2016 / 05:15
1
answer

Clip Class when playing a .wav does not play sound

When playing a .wav file, sounds are not played, but in netbeans if: This is my code: public Clip clip; public void ponerMusica(String musica) { try { clip = AudioSystem.getClip(); clip.open(AudioSystem.getAudioInputStr...
asked by 26.11.2018 / 19:39
1
answer

Does the Collection.shuffle () method serve to clutter lists only?

I created a set: Set<Integer> bombo1 = new LinkedHashSet<>(); And I want to mess up the whole. The problem is that I do not know how. I've tried with: Collections.shuffle(bombo1); but only serves to sort lis...
asked by 07.03.2018 / 00:56
1
answer

TableView and setOnCloseListener JavaFX

my problem is that when I load the .txt in the tableview it loads it but the text does not appear in the columns, it goes empty but when I select the row if it collects the data belonging to each column but in the table it does not come out and...
asked by 08.11.2017 / 20:28
2
answers

Error with array in java

When creating a new Array B from an array% Co_of% previously filled, when making modifications to the array A are also reflected in the array B I explain myself in the following code: BufferedReader br = new Buff...
asked by 27.07.2018 / 05:23
1
answer

Generate PDF in memory not in hard disk

How the pdf could be stored in memory; What I do not want to do is the following: File newPdf = new File("/var/reports/genera01.pdf") Basically I do not want to occupy space on the disk since after I get the PDF I want to print it with P...
asked by 05.09.2016 / 23:36