private void calculate() {
double tfEarth =
Double.parseDouble(tfEarth.getText());
int weight = Integer.parseInt(tfMoon.getText());
double
// TODO - get tfEarth and convert to a double and then
// set each planet text field by calculating the corresponding weight
// using the supplied constants
I think I have the right start but I can't seem to figure out what to do next
1
Expert's answer
2016-04-08T08:55:05-0400
public class Main { public static void main(String[] args) { new MyFrame(); } }
Comments
Leave a comment