Questions tagged as 'java'

1
answer

Complementary error function in java?

How to calculate complementary error function in java?     
asked by 21.12.2015 / 15:54
1
answer

Formatting dates in Java

Good afternoon, I have a date attribute of an object that persists as a string, needing it in ddMMyyyy format at a certain location, and also compare to an earlier date. But at another time I need this same attribute to generate a report...
asked by 04.01.2016 / 17:12
2
answers

Error in the authentication of a web system

I'm learning next to a tutorial to develop a petshop system and am getting the following Hibernate error:    Hibernate: select client0_.idClient idClient2_2_, client0_.email as email3_2_, client0_.name the_name_2_, client0_.password the passw...
asked by 04.01.2016 / 20:47
1
answer

How to put title in JDesktopPane?

I'm developing software for an MVC (Model-view-controller) design video store with the Java Persistent Api Framework and the XML language. My question is: How do you place and edit title in JDesktopPane ? Example: Iwantedtochangethe...
asked by 08.06.2016 / 20:11
1
answer

Exception in Thread "Main" java.land.NullPointerException in com.Login.Login.mai (Login.java:18)

Today I tried to make a login system (again), but this time I used a one-dimensional array to save my values. When I ran my program, Eclipse accused an error (null pointer to be more specific), my theory is that assigning a value to array ca...
asked by 09.06.2016 / 23:02
2
answers

Paging with Spring Framework

I have a question, need to make a paging when I return all the records in a table, I do not have much experience with Spring and I would like to know how to do it, do I need to override findAll ()? Or in the controller's own method already it is...
asked by 09.06.2016 / 13:46
1
answer

Connect server to local network by hostname

I am trying to connect to a local network server using hostname (you can not use IP because the client network does not allow fixed ip and the device does not have IP backup per MAC). So, I'm trying to do this from an Android application, s...
asked by 10.06.2016 / 14:37
3
answers

Delete form registration, JSF Primefaces

I am using JSF with primefaces . I have a registration screen, and I have a button to delete the form data, it would be a button to clear the form to make another registration. However, this clean button is not working. I would like...
asked by 02.09.2016 / 13:57
2
answers

How to print a list of numbers added in sequence?

Program: public static void main(String[] args) { List<Long> lista = new ArrayList(); long k = 0; for (long a = 1; a <= 10; a++) { k = k+2; lista.add(k); } System.out.println("Soma="+lista); }...
asked by 14.09.2016 / 19:16
1
answer

Variable as Java method argument

How do you pass a variable as argument of a method not its value, but the instance itself, any change made in the argument applies to the variable? So how does JavaScript work?     
asked by 03.09.2016 / 22:34