I need an algorithm to rotate an image in java. On the internet I found a promising algorithm in this link , and I gave a tidy up in it and adapted to use angles in degrees. It looks like this:
public static BufferedImage rotateImage(Buffered...
I have already generated the jar file through Netbeans, but I am not able to run the program through the command prompt.
What command to run it in the Windows environment?
I have a Pessoa class that has relationships for your parent (these can be null at any time).
In a certain part of my code I need to find out if one person is ancestor of the other.
I was able to get a recursive solution of the foll...
I would like to know which class that implements java.util.Map contains get(Object key) faster.
The purpose is to make a mini data cache, the volume of information will be approximately 2 to 10 thousand records.
Map<Int...
I found a piece of code in an application that I'm giving continuity that I had not seen yet (or had never noticed). I casually always used i++ in a loop of repetition, for example, however in this section it was ++i and I did not...
I am a beginner in java and would like to create a RESTFUL API but I do not know which library to use or how to use it. Can anyone point me to good tutorials or some libraries to study.
I would like to use JSON.
I found only the class Runtime , but it returns only values in numbers, such as total memory and processors. Is there any API that returns hardware data (processor version, RAM, architecture, etc.) as in CCleaner?
I saw something written similar to the code below. Does this second block in the method method have any use? Can it be used in any way?
I ran this code and it compiled and appeared only the First print. message, not displaying Second pri...
How are operations stored with numbers that exceed the limit values of type long and double ? How are the four primary operations done with these numbers (sum, subtraction, multiplication, and division)?
Context
It is co...
Is this polymorphism? If so, why?
I think it's because there is no method call. Please explain if I am correct or correct me. Thank you :)
OutputStream saida = new FileOutputStream("alunos.pdf");