如何在forloop中打印值直到值达到1不打印任何东西告诉我为什么我做错了什么?在 logcat 中没有显示任何内容,请帮帮我
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
TextView mytest = (TextView) findViewById(R.id.textview1);
for (int i = 31; i > 1; i--)
{
// System.out.println("hello "+i);
mytest.setText(i);
Log.d("SOMETHING", String.valueOf(i));
}
}