I am developing an application Java Web App mounted on Apache Tomcat 8.0.27 . Both in the Internet Explorer browser and Google Chrome , I get errors when I try to show some file that I have deposited locally on my machine.
The possible...
I have created a table in a MySQL database that stores a text field:
CREATE TABLE 'Usuarios' (
'Id' int(11) unsigned NOT NULL AUTO_INCREMENT,
'Nombre' varchar(50) DEFAULT NULL,
PRIMARY KEY ('Id')
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAUL...
How do I get this program to organize the data in the same Array so that first the numbers are greater than 0 and then the zeros in the Ordenar() method? For example:
Entry
(2,3,0,1,0)
Exit
(2,3,1,0,0)
He...
Good afternoon, in my project I have the following attributes and constructor of an Abstract Class:
//Attributes
private int number;
//Constructor
public Card ( int number ) {
this.number = number ;
}
Of which inherits the following C...
How to copy a file or database from internal to external storage, sometimes we need to read files inside the internal storage ( data/data ), which is only possible if the device has root permission.
In the case of a device that do...
I need to go through an arraylist and compare each element of the array with all the elements of the same array and know which one is repeated more times; I have something like that
for (int x = 0; x < lista1.size(); x++) {
int t...
I'm doing a test code and in it I need to get the name of the variable, not the value of it , but I can not find a way to do it.
NOTE: What I want to get is the name I gave the variable, not the name of the Class , which in the case of...
I'm trying to take a screenshot with Robot() and doing some research I found that I could do it this way
robotAwt.createScreenCapture
The problem is that the createScreenCapture method receives a rectangle so I figured I could do s...
I have a method that receives a route to create a file in this and of course the directory I do it in this way.
public static File createTempFile(String exteString, String nombre, String path) throws IOException {
try {...
I was working with random and array and I had 2 doubts on the subject.
1) It is possible to create 3 arrays, each one contains images, and with a random one that chooses a random image of the array and at the same time that the array from whi...