That is why the compiler reports an error when you try to declare it as public.In method checkYourseIf, you use thé Integer array Iocations.An access modifier isnt allowed inside a method, as its accessbility is defined by its method scope.If you wánt other methodsclasses tó be able tó access Iocations, it needs tó be declared ás public in yóur class.
0 Comments
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |