Questions tagged as 'java'

4
answers

How to accommodate the fields of a form with bootstrap?

I want to accommodate fields in this way I have the following fields , and only the combos 1 and 3 are shown, but I do not know how to accommodate so that combos 2 and 4 come out as in the image How could he do it? and likewise...
asked by 22.08.2018 / 20:26
1
answer

NumberFormatException String to Double to String

I have a question related to the JVM of java. We have a double in the form of String and we want to parse it to double , so we wanted to check if the ',' parsea to '.' correctly. If you execute this piece of code:...
asked by 24.08.2018 / 08:38
2
answers

java does not know how to handle the object

static int n=Integer.parseInt(JOptionPane.showInputDialog(null,"introduzca un numero para verificar si es primo")); public boolean calcularNumero(int dividendo,int divisor,int aux) { //cocientes,calcular numero primo,dudas con diviso...
asked by 17.06.2018 / 13:06
1
answer

Are the data of the variables or objects initialized in the constructor method stored in RAM directly?

That is: If I initialized an object "x" in the constructor method, will I have quick access to it when I use it somewhere in my code? Is it stored directly in RAM? Or is there a buffer between the RAM and the JAVA virtual machine? As well as a k...
asked by 22.11.2018 / 00:19
1
answer

How can I do a split of = in Java [closed]

I need to split from a given string according to a series of comparison symbols. I am using this sentence: String[] partes = condicion.toString().split("<|>|=|<=|>=|or|and|not"); The problem is that with <, > = or an...
asked by 21.06.2018 / 09:24
1
answer

FileWriter creates blank file

It is a very simple program, repeat what you write until you put it, and if you tell it to save, save everything you have written in a txt, the problem is that this txt always comes out blank and I do not know why since I have used the same way...
asked by 07.06.2018 / 08:44
2
answers

In an array [] I have to extract the maximum and if another position is also maximum concatenate it

1.- The following countries participate in a championship: "Spain", "France", "United Kingdom", "Italy", "Germany" and "Denmark". Each country gets a score (between 1 and 10 that is generated randomly). It is requested to calculate the countries...
asked by 30.05.2018 / 23:14
1
answer

Format LocalTime

I have a question when it comes to pairing my Local Time to String in order to import a csv file. The local time in the csv file is in the following format: "1:20:32" - > (hour, minute, second). Well, I've done the following: LocalTime dur...
asked by 31.05.2018 / 13:49
1
answer

primefaces hide column in excel p: dataExporter

I have a table like the following: <p:dataTable var="car" value="#{dtBasicView.cars}"> <f:facet name="header"> <p:outputLabel style="float:left">Resultados de búsqueda</p:outputLabel> <p:dataE...
asked by 17.07.2018 / 12:33
1
answer

Remove the focus of an EditText by pressing outside of it on Android

I have several EditText and other components, try that when you press out of EditText you lose the focus and the keyboard is hidden. layout.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"...
asked by 18.07.2018 / 18:54