Manta Ray's

  • 홈
  • 태그

Main함수 1

[JAVA] No enclosing instance of type Class is accessible.

에러 메시지 No enclosing instance of type Class is accessible. Must qualify the allocation with an enclosing instance of type Class (e.g. x.new A() where x is an instance of Class). 원인 static void main 메소드에서 최상위 클래스 선언 없이 내부 public 클래스 생성자를 호출했을 때 발생함. public class Sample { public static void main(String[] args) { A sampleA = new A(); } class A { int a; A(){ this.a = 0; } A(int a){ this.a = a; } publ..

기타/에러처리 2021.09.21
1
프로필사진

Dreaming about a manta ray can mean that you need to consider the current direction and path of your life.

  • 분류 전체보기 (111)
    • JAVA (52)
      • JAVA (18)
      • Spring (4)
      • DesignPattern (23)
      • Architecture (5)
      • JPA (2)
    • DB (13)
      • SQL (13)
    • 알고리즘 (43)
      • 알고리즘 (16)
      • 코딩테스트 (27)
    • 기타 (3)
      • 면접준비 (0)
      • 스크랩 (0)
      • 에러처리 (2)
      • 잡동사니 (1)

Calendar

  2025. 09  
일 월 화 수 목 금 토
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

방문자수Total

  • Today :
  • Yesterday :

Tag

디자인패턴, 행동패턴, design pattern, 리트코드, BFS, java, 정렬, 자바, 구조패턴, 프로그래머스, SQL, 행동 패턴, 코딩테스트, 배열, mysql, 경로탐색, 그래프, 디자인 패턴, 객체지향, 알고리즘,

Copyright © Kakao Corp. All rights reserved.

티스토리툴바

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.