前提・実現したいこと
配列Aをそのままの形で出力したいのです。(Fの形を*で出力したいです)
実行したい出力結果
発生している問題・エラーメッセージ
実行すると、各行が改行されたり、[[Ljava.lang.String;@5305068aと表示されて出力されないなど、なかなか上手くいきません。
該当のソースコード
※【Fの形を*で示しています。】
String[][] A ={{" ","","","","","",""," "},
{" ",""," "," "," "," "," "," "},
{" ",""," "," "," "," "," "," "},
{" ","","","",""," "," "," "},
{" ",""," "," "," "," "," "," "},
{" ",""," "," "," "," "," "," "},
{" ",""," "," "," "," "," "," "},
{" ",""," "," "," "," "," "," "}};
試したこと
System.out.println(A);
System.out.println(Arrays.toString(A));
System.out.println(Arrays.deepToString(A));
等を試しました。
回答2件
あなたの回答
tips
プレビュー