Questions tagged as 'java'

1
answer

How do I make my code run asynchronously and in real time or every time?

I need to know how I can run this code on my server, asynchronously and in real time, or every 5 minutes, for example. String asB64 = Base64.getEncoder().encodeToString("XXXX:YYYYYYYYY".getBytes("utf-8"));...
asked by 29.10.2018 / 19:59
1
answer

Check if the user has balance / credit [closed]

I'm making an app where I need to check if the person has credit on my phone. I wanted to know how I can do this. Thanks Mt     
asked by 28.08.2017 / 03:23
1
answer

Corporate Cloud Services [closed]

Does the "advancement" of the cloud technology in question lead to WebServices in the cloud rather than a private company X network or even local area network?     
asked by 06.07.2017 / 15:59
1
answer

Hibernate configuration

I'm in a java web project, using hibernate, maven, jsf, postgreeSQL DBMS and the apache tomcat container, and now I'm using the hibernate configuration file (cfgConfig.XML) and would like to switch to the JPA configuration persistent.xml), MS do...
asked by 24.05.2018 / 13:41
1
answer

Return Java Trigger [closed]

I have a trigger that checks if the login of the user has more than 3 characters and if it does not have it returns msg "login must have more than 3 characters", how can I capture this return in java and show in a Joptionpane? with try catch(...
asked by 12.12.2016 / 17:03
1
answer

Detect digit repetition in Java [duplicate]

I need to make a program that reads a positive integer N. After reading this number, the program should evaluate if there are repeated numbers in the number. For example: on 234571 there are no repeated digits. another example: there are 76...
asked by 28.09.2018 / 17:35
1
answer

Report on IREPORT - STATUS

Good morning, I need to change a report in IREPORT that now works asim: Currently the field works like this: (Boolean) $F{documentoVigente} ? "VIGENTE" : "VENCIDO" I have a text called $ F {documentOpen} passing an expression cla...
asked by 26.09.2018 / 14:32
1
answer

Call up a new screen using a button (Scene Builder, JavaFX)

I have created two screens, one main and one that I intend to call using a button, what would be the appropriate method to call this secondary screen?     
asked by 21.11.2018 / 18:19
2
answers

Pass random values to Matrix

I have a matrix with 30 fixed values, I wanted to know how to generate these same 30 values, however random, if possible with value limit between (2400, 400). How the array is currently: private int[][] coordenadas = { { 238...
asked by 20.10.2015 / 13:49
1
answer

When I run my program this error appears and I do not know what is wrong

public class ClasseExecutoraFuncionarios { public static void main(String[] args) { List<Funcionario> funcionarios = new ArrayList<>(); Scanner entrada = new Scanner(System.in); Scanner entradaString = ne...
asked by 06.11.2018 / 17:14