how to print values in forloop untill loop is 1
how toprint for value inside forloop until value is reach to 1 is not
print any thing tell me why what i did wrong? is not show anything in
logcat help me please
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
for (int i = 31; i < 1; i--)
{
// System.out.println("hello "+i);
Log.d("SOMETHING", String.valueOf(i));
}
}
No comments:
Post a Comment