I do not know if this possibility exists. Here is a code to help with the question:
public class Square
{
int side;
public Square(int side)
{
this.side = side;
}
int getArea()
{
return side * side;...
I have a ImageButton o imgB1 :
When I click on imgB1 , I add it to a list of integers, 1.
If you re-click the imagB1 , it removes the 1 and places the 6.
List<Integer> list = new ArrayList<>();...
How do I get this result?
The3dotsinthisimagehavealreadybeenpressed.Mylayout<android.support.v7.widget.CardViewxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:to...
What do I need to learn about classes and methods in general for Java and Android programming?
For example, if I need to display a PDF, how will I learn to do this?
We know that there are several classes, no one here could write all the cl...
The code below is producing the following output:
Resultado: PT2H30M
I would like it to be:
Resultado: 2:30
Does anyone know how I can do it?
import java.time.Duration;
import java.time.LocalDateTime;
public class TesteDuration {
pu...
I have the following very complex situation (at least for me).
I have a Person class (Data is fictitious for better understanding, but the idea is the same) like this:
public class Pessoa {
private int codigo;
private String nome;...
class Gerente extends Funcionario implements Autenticavel {
It means that Gerente implements the interface Autenticavel , or Funcionario that will implement the interface?
Good morning, excuse my ignorance by simple doubt. I'll get right to the point.
I have a list of alerts
List<Alertas> alertas;
This list contains several messages sent to some users, I have the following methods that I can use:
g...
I need to do an Android project, but I do not want to use Android Studio because it is very slow and full of bugs on my computer. Which alternative IDE or framework could I use?
A basic requirement of the project is to be in Java.