Posts by Luis Fernando • 54 points
6 posts
-
0
votes1
answer45
viewsA: Android - Add a double every time the function is called
Every time you click the button, it adds up to a+b, is that it? If it is you can’t leave the static variable that way. Button somar = (Button)findViewById(R.id.btn); TextView txt =…
-
0
votes2
answers139
viewsA: print specific data of a json in php
$email= $return['email']; So you only get the email. You can handle Json however you want to get any data. Just consider how it is structured. For example the "text" in "activity_main" is within a…
-
0
votes1
answer227
viewsA: How to implement Abstract Data Type?
import java.lang.Math; class Ponto(){ private int x; private int y; public Ponto(int x, int y){ this.x = x; this.y = y; } public boolean igual(Ponto ponto){ return this.x == ponto.x &&…
javaanswered Luis Fernando 54 -
-1
votes3
answers656
viewsA: How to store values in a vector using inheritance/polymorphism?
You will create an array of Objects. Objects[] vetors = new Objects [] {Carro,Moto, Barco}; Dai in the method of each sub-class you implement the addVeiculo() placing the object in the vector.…
javaanswered Luis Fernando 54 -
0
votes2
answers89
viewsQ: Problems when adding numbers to an Arraylist
My code is like this: public class QuestionarioController implements Initializable { InicioController inicio = new InicioController(); Quiz questionario = new Quiz(); @FXML private Label…
-
3
votes2
answers279
viewsQ: Algorithm for (A+Bi) n
I need to make a program that given the formula : A + B*i n You have to find the lowest value of n for it to be a real number Being A and B inputs and i is part of the complex numbers. I have a…