0
0

More than 1 year has passed since last update.

vistaでandroid studio その5

Last updated at Posted at 2022-08-29

概要

vistaでandroid studio 1.0.1やってみた。
練習問題やってみた。

練習問題

九九を実装せよ。

写真

device-2022-08-29-094434.png

サンプルコード

    public void run(View view) {
        TextView tv = (TextView) findViewById(R.id.chage);
        String dis = "";
        for (int col = 1; col <= 9; col++)
        {
            for (int row = 1; row <= 9; row++)
            {
                if (col * row < 10) dis += " ";
                dis += String.valueOf(col * row);
                dis += " ";
            }
            dis += "\n";
        }
        tv.setText(dis);
    }

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0