블로그
- [영진전문대학 컴퓨터정보계열] java(자바) 탁구공 여러개 만들기 .*; public class myapplet extends JApplet implements Runnable { public static final int WIDTH = 300; public static final int HEIGHT = 150; private MyDrawingSurface screen; Thread aThread; public void init
- [영진전문대 컴퓨터정보계열]자바 글자 애니매이션(예제) 핑퐁(Ping Pong) .*; public class myapplet extends JApplet implements Runnable { public static final int WIDTH = 300; public static final int HEIGHT = 150; private MyDrawingSurface screen; Thread aThread; public void init
- [영진전문대 컴퓨터정보계열]자바 글자 애니매이션(예제) .*; public class myapplet extends Applet implements Runnable { static final int MAX_FRAME = 200; int
- [영진전문대 컴퓨터정보계열 프로그래밍전공] 9월 9일 실습내용 package csaf; public class bank { public static void main(String[] args){ double pi=0; final int N =
- Inner Class Inner Class - Inner 클래스에는 모든 접근 제어자(static, public, private, protected) 를 사용할 수 있다. - static 클래스 [ex ] class Tv { static class B { } } - 객체 생성 : Tv.B = new B(); 로 객체 생성한다. - 잘 사용하지 않는다. - 클래스와 동일 순서로 동작한다
- (망고64-Cupcake) Input Device - Mouse Clase 추가 및 Cursor Support final int CLASS_KEYBOARD = 0x00000001; public static final int CLASS_ALPHAKEY = 0x00000002; public static final int CLASS_TOUCHSCREEN = 0x00000004; pu.......
- 쓰레드에 안전한 싱글톤 클래스를 만드는 세가지 방법 메모리 모델, 캐슁, 코드 최적화의 문제때문에제대로 동작되지 않는다는 것이 정설입니다.현재 어떤 플랫폼상에서도 완벽히 동작한다고 보장 받을 수 있는 코드는세가지가 있습니다.1) static 필드에서 초기화 하는 방법public class Singleton { public static final fSingleton = new Singleton(); private Singleton
- [디자인패턴-2 Structual]Flyweight pattern lazy loading 참조 public enum FontEffect { BOLD, ITALIC, SUPERSCRIPT, SUBSCRIPT, STRIKETHROUGH} public final final WeakHashMap> FLY_WEIGHT_DATA = new W.......
- [디자인패턴-1 Creational]Lazy initialization .*; public class Fruit { private static final Map types = new HashMap(); private final String type; /
← 이전
5 페이지