-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathStorm.java
33 lines (25 loc) · 905 Bytes
/
Storm.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.example.brysonwilks.roadwork;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class Storm extends MainActivity {
public int start, end, duration;
EditText startInput;
EditText durationInput;
Button next;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
startInput = (EditText) findViewById(R.id.inputStart);
durationInput = (EditText) findViewById(R.id.inputDuration);
next = (Button) findViewById(R.id.buttonNext);
next.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
start = startInput.getText();
duration = duartionInput.getText();
}
});
}
}