Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.myfirstapp;
- import androidx.appcompat.app.AppCompatActivity;
- import android.os.Bundle;
- import android.widget.Button;
- import android.widget.EditText;
- public class MainActivity extends AppCompatActivity {
- double mother, father, current;
- EditText motherHeight;
- EditText fatherHeight;
- EditText currentHeight;
- Button genderButton;
- Button submitButton;
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
- mother = (EditText)(findViewById(R.id.motherHeight));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement