I have an application in java that I did in my work, to control the sequence of numbering of trades, the same is in jar format in the network (I did using swing in java + HSQLDB).
One problem that is not critical, but a little annoying, is th...
Let's say I have the following CPF's:
65568752877
86924355382
55317961378
82331493146
I would like to pass them as a parameter in a query SQL , I am trying as follows:
SQL Excerpt
... " AND Beneficiario.Codigo IN ('"+codig...
Given that there are classes java.util.Stack and java.util.ArrayDeque in the context of stacks, are there also Java classes that implement the abstract type of data queue?
I was trying to format a number by putting points to make reading easier.
Only with the dot does not work, but it works with commas.
Ex:
String s = String.format("%. d", 123456);
System.out.println(s);
I have the following method:
public String insereRegistro(int tipo, String data, String horario, String historico,
int veiculo, double km, int cliente, int solicitante,
Stri...
I was able to enter information into the database by using the getReadableDatabase() method. Should not that be a mistake then? Should not be the getWritableDatabase() method?
private void savePet() {
petDbHelper = new P...
I do not know if this is normal, but Hibernate starts the process, inserts the object into the database, but its java process is open.
What do I have to do to make this process stop automatically after insertion?
Here is a code that exem...
I have a class to read an xls in java, and I need to know how to print one column next to another as well as in xls itself. So far I've only been able to print in a single race or online.
NOTE: I'm using the jxl library.
Follow the code:...
I'm having a problem with:
Non-static method write can not be referenced from a static context.
I have tried to change the function to static , however, there it gives problem:
non static variable
This is the Persona...