Questions tagged as 'java'

2
answers

Doubt with dataTable and / or JSF / JPA modeling

Good evening, I have the following problem ... at first it seems kind of silly, but honestly I can not get out of it I want to create a table where the columns are SUNDAY, MONDAY, THIRD, FOURTH, FIFTH, SIXTH, SATURDAY respectively ... and in...
asked by 18.02.2015 / 23:00
1
answer

Problems using Java classes in Oracle Database

I'm having trouble using Java classes a little "complex " in Oracle . When I use a simple class, as an example below: CREATE JAVA SOURCE NAMED "Welcome" AS public class Welcome { public static String welcome() { return "W...
asked by 14.08.2014 / 18:47
1
answer

Changing size of JOptionPane.showInputMessage

I tried several methods like setPrefferedSize, setSize with / without pack () but nothing seems to affect JoptionPane code: selectProcess = new JOptionPane(); selectProcess.showInputDialog(null,"Please select game process","Sele...
asked by 30.08.2014 / 16:34
6
answers

How to remove 2 digits from each list item?

I have a list / array: var lista['01.um','02.dois','03.tres'] I need to create a new list like this: lista['01','02','03'] I know little about Groovy and Java, what is the correct way to create the list?     
asked by 19.06.2016 / 20:55
4
answers

Error Loop Java Class Scanner

When I use the nextLine () method in place of next () in the code below, code interactions are skipped and some fields are left blank. import java.util.Scanner; public class turma { public static void main (String args[]) { final...
asked by 28.10.2014 / 07:51
1
answer

How can I keep my application always full screen without being minimized?

I'm developing a Java application that should stay full screen and can not be minimized or make room for another application or even the OS, somehow blocking everything and leaving it on the screen, but I'm having trouble I can leave it in fu...
asked by 01.08.2016 / 04:19
4
answers

How to generate random numbers for Draw? [closed]

I need to generate numbers for a promotion, these numbers should range from 0 to 99999. How can I distribute these numbers randomly and equitably, without repeating numbers already distributed?     
asked by 24.10.2016 / 23:44
4
answers

Variables that work in more than one method

I tried to make a simple console calculator, but I wanted to create several methods to make it well organized. The problem is that in the method of storing variables, it stores, but when it goes to the compute part it loses the values of the...
asked by 09.03.2016 / 22:12
0
answers

How to do concurrency control in Hibernate for INSERT in the database

I have a competition control problem in inserting data into my web application. Context: I have 3 tables (ex: X, Y and Z) that register hospitalizations of patients (already registered). A patient can not have more than one ACTIVE hospitaliza...
asked by 07.06.2018 / 20:09
2
answers

Get JSON from the URL properly

I have the following method that gives me a String : public static final String jsonClientes = " {\"clientes\": " + " [" + " { \"idClientesT\": 1," + " \"tipo\":\"s\"," + "...
asked by 14.12.2018 / 14:20