Questions tagged as 'java'

1
answer

Fill Series xls with POI java

I have a code inside a for that it takes a certain column and inserts the value, and assigns the quantities of rows defined in for, for example rows = 1; rows
asked by 13.06.2016 / 14:20
1
answer

Validation error with Spring MVC in nested Entity

And, well, how are you? I started studying Spring recently for AlgaWorks courses and the progress of the course I came across a problem in a project that I am developing. I have a School entity that has the following characteristics: @Id @G...
asked by 23.01.2017 / 14:30
1
answer

What does it mean to clear in a Calendar variable?

I want to know when to use clear () and why to use it. SimpleDateFormat simpleDateFormart = new SimpleDateFormat("dd/MM/yyyy"); Date data1 = simpleDateFormart.parse("18/12/1986"); Date data2 = simpleDateFormart.parse("25/01/2017"); Calendar...
asked by 25.01.2017 / 19:23
1
answer

How to display a parse String in a Textview? [closed]

I'm trying to add an image with a description on the parse server. I have already been able to add the description of the image by objectId , but the problem is that I do not know how to display the text of the image in a textvie...
asked by 19.01.2017 / 19:28
2
answers

Datatable column row with more than one attribute

I have a multi-column Datatable. One of them is a column that should display more than one attribute on each row of that column because it is part of a ManyToMany relationship. This column will receive the attributes of a List. I want to know ho...
asked by 28.03.2018 / 00:44
1
answer

error in comparison using substring

maquina += numeroale.nextInt(4); maquina += numeroale.nextInt(4); //vez da mqauina for (int i = 0; i < maquina.length(); i++) { System.out.println("valor atual"+maquina.substring(i,1)); if((maquina.substr...
asked by 23.05.2016 / 05:08
1
answer

JButton trigger two different events?

I have a program that simulates a game of data, where I have two "data" that, when the sum of the two gives 7, the user is a winner, if not, he loses. Well, I made a simple interface in swing , where I created two buttons, one launches t...
asked by 23.05.2016 / 03:37
1
answer

Exception in thread "main" java.lang.NullPointerException: Calculator

I started studying Object Orientation and decided to make a simple calculator program. At the moment I just made the sum to see if the way I was doing is right. Follow the code: package javaapplication100; import java.util.Scanner; /** *...
asked by 24.05.2016 / 04:05
1
answer

How to set the root stage of a controller?

I created a login screen that when authenticating redirects to the menu, but making the call by the controller does not work. Main: public class Main extends Application { @Override public void start(Stage primaryStage) throws IO...
asked by 11.05.2016 / 03:41
1
answer

What's wrong with this query from my JSP?

This is an excerpt from a JSP page that lists logged-in user commitments. I do not use JSP nor do I usually do this kind of select but I need to use it that way. <% try { Class.forName("com.mysql.jdbc.Driver");...
asked by 09.05.2016 / 03:23