I can not understand something simple, I explain below:
I have the class MainActivity.java (The main one) and then I create another class of name Funcion.java so
in the Function class
all content (This all empty)
public class Funcion...
I need to enter a date, that you enter as string example: 21/10 / 2016-12: 04, and these data convert each one into a data type, (int, byte), to make validations and then enter them to a calendar
I'm doing an app for Android , and part of my code is like the following:
public void loop(){
for(Car car:carList)
car.run();
}
The bad thing is that I get the error java.util.ConcurrentModificationException . I was re...
I have a problem that I think any intermediate programmer can solve. The case is that I have a while loop in which if I put in the input (for example) "add" and add the numbers the subtraction is done but then the while is executed again and it...
I have a small code in which the purpose is to verify the user's name and see if it exists in an array and the age verify if it is of legal age. If it is, you are authorized to enter the system.
The code is not finished yet but my doubt is th...
I'm making a game that aims to fill all the squares of the same color (in this case the numbers will be the colors selected by the user who is playing, and in a matrix with dimensions of 9x9). The fact is that I have already done how to generate...
How can I get the stack trace at a position in the code when no exception was generated?
I come using
try
{
// código
}
catch (IOException e)
{
e.printStackTrace();
}
or even
e.getMessage()
within an exception, but I am interest...
Example
For a = [2, 3, 3, 1, 5, 2] , the output should be
firstDuplicate(a) = 3 .
There are 2 duplicates: numbers 2 and 3 . The second occurrence of 3
has a lower rate than the second occurre...
What I want to do is from an application to generate images and watch them on a TV connected to the pc by hdmi, the idea is that the TV does not show the interface of the application or the interface of the operating system, but only the image t...
Good, I would like to know how I can change the value of the following constant (To give an example) by a method.
private static double PIVA=0.16;
Edit: I have expressed myself poorly, I am sorry. I misused the word "constant", I wanted to...