Questions tagged as 'java'

2
answers

How to make java recognize me a paragraph

only with a query. It's about that I'm creating a java game similar to Tamagochi from the 90's. You must have the option to create Pokemon, where you can enter the name of the Pokémon; in addition to this the player can enter an "image" of chara...
asked by 13.03.2018 / 03:01
2
answers

Using Extends in Java

If in a project I want to call a method with another method inside, is it necessary to use extends ? I have done some exercise with extends and this but I do not understand the difference well, in this case that I explain, co...
asked by 01.04.2016 / 19:56
2
answers

Loss of Focus of a jTextField

I need to convert from inches to centimeters and vice versa. The idea is to have a single button "convert" and that according to the field that has just lost focus, I will see the conversion in the other JtextField the result. Example:...
asked by 17.04.2016 / 22:01
2
answers

Convert a list Key Value to MultiLine and inverse in Java

From a list Map with structured key, value Map<String, String> map = new LinkedHashMap<>(); map.put("param1","valor uno"); map.put("param2","valor dos"); map.put("param3","valor tres"); To convert a list to a string I us...
asked by 02.05.2016 / 19:52
1
answer

Android adapter to reorder by distance

I'm trying to reorder my list of items by distance (using getListView from Android, not a custom one) and I'm having problems. I'm getting the spherical distance in meters (double type) using Maps Utils inside the adapter (SomeAdapter). dou...
asked by 05.10.2017 / 19:51
2
answers

Mix two arrays in one. Java

I'm new to the world of programming, I'm trying to mix two arrays into one, each with the dimension that we choose, and filled with randoms. But when it comes to mixing them, printing the first of the first array, first of the second array, seco...
asked by 30.11.2017 / 19:18
1
answer

Euro word symbol

I have the following code: XWPFParagraph totalFinal = documento.createParagraph(); XWPFRun tileFinal = totalFinal.createRun(); tileFinal.setText("TOTAL: " + totalIVA + " (€) "); When I generate the word, I get a weird symbol     
asked by 20.11.2017 / 16:42
1
answer

Place item below listview

I need to place an element below a listview. So far I have a Linearlayout that contains a spinner that is located on a listview. Being in a LinearLayout, it stays fixed and below I have a Listview which moves down and up. So far it's like thi...
asked by 01.12.2017 / 12:19
2
answers

Error java.lang.IllegalArgumentException with Date.valueOf

I'm generating this button: private void btModificarActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: if (this.validarDatos()) { Pacie...
asked by 27.11.2017 / 22:23
3
answers

Change Variable Name Android Studio

I would like to change the name of all the variables that have the same name. Do you know any commands? Android Studio     
asked by 10.12.2017 / 00:39