Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MainActivity extends AppCompatActivity {
- EditText edtN1,edtN2, edtN3, edtResultado,edtVerNumero, edtNumero;
- Integer numeroAleatorio, n1,n2,n3;
- Button btnJogar, btnExibirQualquer;
- Random numeroRandomico = new Random();
- btnExibirQualquer.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- numeroAleatorio = numeroRandomico.nextInt(10);
- edtNumero.setText("O número é: " + numeroAleatorio);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement