Skip to content

pp.142 4-5-1(2) サンプルコードのエラー #52

@toyo

Description

@toyo

ページ上部のサンプルコードの
一行目において、integerArrayがint[]で宣言されているにもかかわらず、
二行目において、Arrays.asList()変換結果であるListをListに代入しようとしているため、
当該コードをコンパイルすることができません。

一行目を、Inetger[]で宣言するよう修正したほうが良いのではと思います。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions