Questions tagged as 'java'

1
answer

Zip more than 1 file

How can I zip more than one file? I'm only getting one. This is my code: public static void compactarParaZip(String arqSaida, String arqEntrada) throws IOException { int cont; byte[] dados = new byte[TAMANHO_BUFFER]; Buffe...
asked by 27.04.2015 / 18:22
1
answer

Add element to an Array

I need to add lista.get(i) to an array, it will be added to the array with the value of key spec_linha-criativa changed. However, in my code I always lose the reference and when j = 1 my list has the same values. For examp...
asked by 03.07.2015 / 20:31
1
answer

Problem to add values in JDBC

The console gives me the following error:    FUNCTION workday. SUM does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manual Can only sql be in my prepareStatement, help me! Dao method publi...
asked by 04.07.2015 / 01:21
2
answers

Calculation of the Z value of the normal distribution

Good morning, I'm having a problem in calculating the Z value in the normal distribution. Also the calculation of the constants t and sigma t are giving me 0, which is impossible. I'll put the code and the output. The calculation can be seen...
asked by 11.05.2015 / 14:59
1
answer

Hostesses that use JSP

I have a web hosting linux that I put all my systems in PHP, and now I need to work with the extension (* .JSP) and I have some doubts What kind of host do I use to run JSP? Does CPanel run JSP automatically? What do I need to do to ru...
asked by 09.05.2015 / 04:14
1
answer

How to return a boolean on the button

I have a button and I want it to be clicked when I return true to if of another class, but I did not find any method how I do it. Button b = new Button(); Another class: public static ObservableList getObs(ObservableL...
asked by 09.05.2015 / 19:58
1
answer

How to solve the error Caused by: java.lang.NullPointerException in getSessionFactory ()

This error message is appearing to me Herearethelinesthatgaveerror:publicclassHibernateUtil{privatestaticfinalSessionFactorysessionFactory=buildSessionFactory();privatestaticSessionFactorybuildSessionFactory(){try{Configurationconfiguration=n...
asked by 14.04.2015 / 17:30
1
answer

Update an h: database outputText from a p: autoComplete

I have a health care application and I have the following question: When I use the p:autoComplete component of PrimeFaces to search for the name of the patient that has the dataNascimento attribute, I want the h:outputText to rece...
asked by 14.04.2015 / 14:08
1
answer

Help with ArrayList

Only the last two elements of my Arraylist are sent as datasource in ireport. I have an ArrayList that stores read data from tags into xml files. For example, I select three xml files with the same tags but with different data. I have a method t...
asked by 14.04.2015 / 13:33
1
answer

Dynamically update (refresh) a JDialog (swing)

I'm having some trouble updating JDialog created through WindowsBuilder in Eclipse (it would not be because of this). Basically, I have a Change Registrations screen from my financial mini-system, I load the information on t...
asked by 15.04.2015 / 03:44