【发布时间】:2014-10-14 02:06:39
【问题描述】:
private EditText InputWiek; //First input
private EditText InputTspocz; //Second input
private TextView textout;
float Wiek = InputWiek;
float Tspocz = InputTspocz;
int Tmax = 220-Wiek;
int RT = Tmax-Tspocz;
int Tburn = 70*RT/100+Tspocz;
public void buttonOnClick(View v) {
Button button=(Button) v;
InputWiek = (EditText) findViewById(R.id.idWiek);
InputTspocz = (EditText) findViewById(R.id.idTspocz)
textout = (TextView) findViewById(R.id.txtOutput;
textout.setText(Tburn.getText())); //A little scrap here :/
}
}
【问题讨论】:
-
Log.d(getClass().getSimpleName(), "Stuff you wanna write out"); -
在 textout = ..their is a missing ) befor ;下一行是 a ) to mutch
标签: java android eclipse android-activity android-studio