public class Main {
public static void main(String[] args) throws Exception {
byte[] array = new byte[3]; incArray(array); System.out.println(array[0]); } public static void incArray(byte[] array) { byte[] scores = new byte[]{80,65,70,95}; array = scores; }
}
array[0]は0で表示されてしまします。
方法が間違っているのでしょうか。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。