Questions tagged as 'java'

1
answer

How to convert a String to an id or numeric data?

I have strings that are unique and I would like to create an id from it. Does anyone know how I can do it? Thank you in advance.     
asked by 11.02.2016 / 22:00
2
answers

problem with daylight saving time and java applications on ubuntu server 16.04

This weekend we had the switch to DST here in my area, I have some machines running ubuntu server 16.04 with java applications. All of them with JBOSS , POSTGRES for one application and one with GLASSFISH , MYSQL . If I type the com...
asked by 18.10.2017 / 16:49
1
answer

Convert Roman numbers in Java

I made a program that converts integers to Roman numbers in Java, but the program does not execute. What can it be? Follow the code: import java.util.Scanner; public class Teste { public static void main(String[] args) { S...
asked by 19.10.2017 / 19:51
2
answers

Method to change CSS subclass (color of the item text in the choicebox)

I have a choice-box. In my choice-box there is a list of colors to be selected by the user through the interface. Every time the user selects a color, the background of that same choice-box is the same color that the user selected. By default, t...
asked by 15.10.2017 / 01:18
1
answer

How to call distinct methods under various Case Switch conditions?

I have this code, and would like to know how to call a method from switch...case . public static void opcoes(){ System.out.println("Selecione o Algoritmo de Substituicao Desejado"); System.out.println("1 - FIFO");...
asked by 15.10.2017 / 23:15
1
answer

How to include current date in a generated JavaDoc?

I'm using jAutodoc to automatically generate JavaDocs, here's an example: /** ## type: class|interface|enum * The ${e.getType().fu()} ${e}. * * * @author Edson * @version 1.0.0 * @date 11/09/2015 * */ My question is, how do...
asked by 14.09.2015 / 21:33
2
answers

Wrapping text

I'm trying to do a line break in a Array , however I'm not having success trying to run split() , in short, I want to make a table of 10 rows with 2 columns that get the values of list and list2 public class Ultimos10...
asked by 20.09.2015 / 17:06
2
answers

How to get the type of component clicked?

The getSource () method returns the event source, is there any method that returns the event source type, whether it was a jlabel, or jbutton, something like this?     
asked by 06.12.2015 / 22:27
1
answer

Variable type for accurate calculations (JAVA) [closed]

What is the best kind of variable for very accurate calculations?    I have used double and BigDecimal and the rounding is diverging   much in the end result.     
asked by 23.12.2015 / 19:08
3
answers

Data deletion via Hibernate

In the database used by my application I have a table that I defined as temporary that I write some data but at the end of the process I no longer need the information registered in that table, how should I make this table be cleaner would it be...
asked by 29.12.2015 / 12:05