æ­¯NetworkKawuiBawuiBo.PDF

Size: px
Start display at page:

Download "æ­¯NetworkKawuiBawuiBo.PDF"

Transcription

1 ( Jr.) from Yongwoo s Park Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 1

2 Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 2

3 1. / / / ClientLobby/Lobby... 8 ClientRoom/Room (DIALOGBOX) (CardLayout)...14 Absolute Positioning / SOCKET SERVERSOCKET / PpiKki ServerPlayer...20 Lobby...21 Room...24 ClientLobby...27 Client Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 3

4 from Yongwoo s Park (KawuiBawuiBo)..,.,..., /,.,,.,. ^^...,.,.. Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 4

5 1. /. 1 /.,. (.) ClientLobby PpiKki ServerSocket accept 4001 (Socket),. PpiKki ServerSocket 4001 (accept),,, ServerPlayer., ServerPlayer ClientLobby. PpiKki ServerPlayer, Lobby chatlist., Lobby Room. Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 5

6 Lobby Room, ServerPlayer chatlist.,, ServerPlayer chatlist. Lobby chatlist ServerPlayer Room playerlist., ClientRoom. /.,,. ClientLobby,.,,,., ClientRoom. ClientRoom.,.,, ClientLobby.,,. PpiKki,. ( ) (ServerSocket 4001 accept.),, ServerPlayer ServerPlayer., ServerPlayer Lobby chatlist, Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 6

7 Lobby.,,,. ServerPlayer.,., ServerPlayer Lobby chatlist Room playerlist,. Lobby (Room)., PpiKki ServerPlayer, Lobby chatlist, Lobby chatlist., Room, ServerPlayer chatlist Room playerlist,.,, Lobby ServerPlayer chatlist Room playerlist. Room. Room., Room Lobby ServerPlayer playerlist.,,..,.,. (ClientLobby) (Lobby) Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 7

8 (Lobby) (ClientLobby) (ClientRoom) (Room) (Room) (ClientRoom), (ClientLobby), (Lobby)., ClientLobby Lobby, ClientLobby Lobby,. Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 8

9 2. ClientLobby Lobby, ClientRoom Room. Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 9

10 3. ClientRoom Room (Dialogbox) Dialog., Dialog., (modal) (non-modal modal-less).., Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 10

11 ,,. (modal-less or non-modal),.. TextDialog WarningDialog,. 1. TextDialog.java, WarningDialog.java class TextDialog extends Dialog { Label msglabel = null; TextField field = null; String strtitle=null; public TextDialog(Frame owner, String title, String msg) { super(owner, title); // setmodal(true); // /* */ addwindowlistener(new WindowAdapter() { public void windowclosing(windowevent e) { field.settext(""); dispose(); // ); field.addactionlistener(new ActionListener() { public void actionperformed(actionevent ae) { if(ae.getsource() == field) { dispose(); ); class WarningDialog extends Dialog { Button okbutton=null; Label msglabel=null; public WarningDialog(Frame owner, String title, String message) { super(owner, title, true); //, modal /* */ okbutton.addactionlistener(new ActionListener() { public void actionperformed(actionevent e) { dispose(); ); addwindowlistener(new WindowAdapter() { public void windowclosing(windowevent e) { dispose(); ); pack(); autoalign(); Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 11

12 public void autoalign() { // int sw = Toolkit.getDefaultToolkit().getScreenSize().width; int sh = Toolkit.getDefaultToolkit().getScreenSize().height; int dw = getsize().width; int dh = getsize().height; int x = (((sw - dw) / 2) < 0)? 0 : ((sw - dw) / 2); int y = (((sh - dh) / 2) < 0)? 0 : ((sh - dh) / 2); setlocation(x, y);,. 2. ClientLobby.java TextDialog s = new TextDialog((Frame)(ClientLobby.this.getParent()), "...", "..."); s.show(); roomid = s.field.gettext().trim(); if(!"".equals(roomid)) { /* */ WarningDialog w = new WarningDialog((Frame)(ClientLobby.this.getParent()), "Warning", "."); w.show();,. 4. TextDialog WarningDialog Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 12

13 ..,. : setlocation(x, y) setsize(width, height). :, paint. 3. ImageComponent.java, ImageButton.java class ImageComponent extends Canvas { Image image=null; public ImageComponent(Image image) { this.image = image; if(this.image!= null) { setsize(image.getwidth(this), image.getheight(this)); public void paint(graphics g) { if(image!= null) { g.drawimage(image, 0, 0, this); class ImageButton extends Canvas { private Image currentimage=null; private Image pressedimage=null; private Image releasedoffimage=null; private Image releasedonimage=null; private ActionListener al=null; public ImageButton(Image releasedoff, Image releasedon, Image pressed) { this.pressedimage = pressed; this.releasedoffimage = releasedoff; this.releasedonimage = releasedon; this.currentimage = releasedoff; setsize(releasedoff.getwidth(this), releasedoff.getheight(this)); addmouselistener(new MouseAdapter () { public void mousepressed(mouseevent e) { Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 13

14 currentimage = pressedimage; repaint(); public void mousereleased(mouseevent e) { currentimage = releasedoffimage; repaint(); ActionEvent ae = new ActionEvent(ImageButton.this, ActionEvent.ACTION_PERFORMED, "ImageButton"); al.actionperformed(ae); // ActionListener public void mouseentered(mouseevent e) { currentimage = releasedonimage; repaint(); public void mouseexited(mouseevent e) { currentimage = releasedoffimage; repaint(); ); public void addactionlistener(actionlistener al) { this.al = al; // ActionEvent ActionListener public void paint(graphics g) { if(currentimage!= null) { g.drawimage(currentimage, 0, 0, getsize().width, getsize().height, this); ImageCanvas ImageButton., paint., ImageButton, AWT Button ActionListener, ActionEvent., addactionlistener() ActionListener, ActionEvent, ActionListener.,,,., ka wuibawuibo CardLayout Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 14

15 LobbyPanel lobbypanel, BoardPanel boardpanel cardpanel (makebutton) (joinbutton).,, lobbypanel boardpanel. kawuibawuibocardlayout.show(cardpanel, "BoardPanel");, Client (exitbutton), boardpanel lobbypanel Client parentapplet. parentapplet. kawuibawuibocardlayout.show(parentapplet.cardpanel, "LobbyPanel");,. 5. Panel.,,. ClientLobby. Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 15

16 , ImageCanvas.,,. null,., ImageCanvas lobbypanel (add),. ImageCanvas lobbypanel,. 4 (x, y, width, height).,,. public class ClientLobby extends Applet implements Runnable { /* */ public Panel initlobbypanel() { /* */ lobbypanel = new Panel(null); backgroundcanvas.setbounds(0, 0, 776, 585); roomlist.setbounds(14, 145, 537, 212); playerlist.setbounds(568, 145, 202, 212); chatarea.setbounds(80, 389, 690, 101); chatfield.setbounds(14, 502, 756, 26); lobbypanel.add(roomlist); lobbypanel.add(playerlist); Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 16

17 lobbypanel.add(chatarea); lobbypanel.add(chatfield); lobbypanel.add(makeroombutton); lobbypanel.add(joinroombutton); lobbypanel.add(exitbutton); lobbypanel.add(backgroundcanvas); // add (mechanism).,. ServerSocket (server socket)., ServerSocket Socket /,. 6. / Client Client Program Program String host = park.konkuk.ac.kr ; Socket s = new Socket(host, 4444); Connection established Server Server Program Program ServerSocket server; server = new ServerSocket (4444); Socket s = server.accept(); #1234 #1234 TCP/IP TCP/IP #4444 #4444 Inputstream in = s.getinputstream(); Outputstream out = s.getoutputstream(); Inputstream in = s.getinputstream(); Outputstreamout = s.getoutputstream(); /* Communication */ in out out in /* Communication */ In.close(); out.close(); s = null; In.close(); out.close(); s = null; park.konkuk.ac.kr (listen),. 6., 4444 (listen), 4444.,, ( 1234) Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 17

18 . ( )., PpiKki, ServerPlayer, Lobby, Room, ClientLobby, Client., TCP/IP PpiKki, ServerPlayer, ClientLobby., PpiKki ServerSocket 4001., 4001, ServerPlayer, ServerPlayer., ClientLobby 4001 Socket, Socket ( ServerPlayer). ServerSocket PpiKki, main. main 4001 PpiKki, PpiKki., PpiKki 4001 ServerSocket, Lobby Lobby., PpiKki run (accept), ServerPlayer, ServerPlayer. ServerPlayer Lobby addplayer, Lobby., SO_TIMEOUT,,. player.socket.setsotimeout(10); //, 10msec SO_TIMEOUT Lobby., Lobby Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 18

19 ,, (Blocking).., TIMEOUT, SO_TIMEOUT., Lobby GRoom. public class PpiKki extends Thread { final static int KAWUI_BAWUI_BO_GAME_PORT=4001; Lobby lobby=null; ServerSocket ppikkisocket=null; public static void main(string args[]) { System.out.println("MW Game Server Running..."); PpiKki ppikki = new PpiKki(); ppikki.start(); public PpiKki() { try { ppikkisocket = new ServerSocket(KAWUI_BAWUI_BO_GAME_PORT); catch(ioexception e) { System.out.println("IOException: "+e); System.exit(1); lobby = new Lobby(); lobby.start(); public void run() { Socket socket=null; ServerPlayer player=null; System.out.println("PpiKki thread is started..."); while(true) { try { socket = ppikkisocket.accept(); if(socket == null) { System.out.println("Can't create a socket..."); continue; else { player = new ServerPlayer(socket, lobby, null); if(player == null) { System.out.println("Can't create a player..."); continue; lobby.addplayer(player); catch(exception e) { e.printstacktrace(); Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 19

20 ServerPlayer. ServerPlayer (ClientLobby), PpiKki ServerPlayer PpiKki. BufferedReader, PrintWriter. receivemessage sendmessage., receivemessage, SocketException IOException throw.,., ServerPlayer receivemessage Lobby Room, removeplayer. class ServerPlayer { public Socket socket=null; public BufferedReader is=null; public PrintWriter os=null; /* */ ServerPlayer(Socket socket, Lobby lobby, Room room) throws IOException { is = new BufferedReader(new InputStreamReader(socket.getInputStream())); os = new PrintWriter(socket.getOutputStream(), true); if(is == null) { throw new IOException(); if(os == null) { throw new IOException(); this.socket = socket; this.lobby = lobby; this.room = room; getinitialinfo(); socket.setsotimeout(10); public void getinitialinfo() { if(is!= null) { try { sendmessage("username"); playerid = receivemessage(); catch(socketexception e) { clear(); // // Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 20

21 catch(ioexception e) { clear(); public void sendmessage(string message) { if(message!= null) { os.println(message); os.flush(); if(os.checkerror()) { lobby.removeplayer(this); // ( ). // // System.out.println("Send: "+message); public String receivemessage() throws SocketException, IOException { String message=null; try { message = is.readline(); if(message == null) { // // throw(new IOException("Null pointer received...")); System.out.println("Recv: "+message); catch(socketexception e) { throw(e); catch(interruptedioexception e) { message = ""; catch(ioexception e) { throw(e); catch(exception e) { /* */ message = ""; return(message); Lobby. Lobby PpiKki. PpiKki 4001, ServerPlayer, Lobby chatlist., Lobby Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 21

22 chatlist ServerPlayer receivemessage,. public class Lobby extends Thread { Hashtable chatlist=null; Hashtable roomlist=null; // // public Lobby() { chatlist = new Hashtable(); roomlist = new Hashtable(); //, public void addplayer(serverplayer player) { if(player.playerid!= null && chatlist.get(player.playerid) == null){ String message=null; chatlist.put(player.playerid, player); message = "300 UNICAST "+player.playerid+" " +player.playerid+" ["+player.playerid+"]..."; player.sendmessage(message); message = "300 BROADCAST "+player.playerid +" * ["+player.playerid+"].."; broadcastmessage(message); sendroomlist(player.playerid); broadcastuserlist(" "); // public void takeplayerfromroom(serverplayer player) { chatlist.put(player.playerid, player); // public void removeplayer(serverplayer player) { chatlist.remove(player.playerid); broadcastuserlist(" "); // ServerPlayer public void sendmessage(string playerid, String message) { ServerPlayer player = (ServerPlayer)chatList.get(playerId); if(player!= null) { player.sendmessage(message); Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 22

23 // public void makeroom(string playerid, String roomid) { ServerPlayer player = (ServerPlayer)chatList.get(playerId); Room room = new Room(roomId, player); roomlist.put(roomid, room); room.start(); // public void removeroom(string roomid) { Room room = (Room)roomList.get(roomId); if(room!= null) { roomlist.remove(roomid); room = null; broadcastroomlist(); public void broadcastmessage(string message) { /* */ public void broadcastroomlist() { /* */ public void sendroomlist(string playerid) { /* */ public void senduserlist(string playerid, String roomid) { /* */ public void broadcastuserlist(string roomid) { /* */ public boolean enterroom(string playerid, String roomid) { /* */ //.. public void run() { while(true) { // Read Data try { sleep(100); catch(interruptedexception ie) { // Enumeration e = chatlist.elements(); while(e.hasmoreelements()) { ServerPlayer player = (ServerPlayer)e.nextElement(); try { String receive = null; receive = player.receivemessage(); if(receive == null "".equals(receive)) { continue; StringTokenizer st = new StringTokenizer(receive, " "); String command = st.nexttoken(); //, if("100".equals(command)) { // 100 BROADCAST playerid * chatstr String type = st.nexttoken(); String playerid = st.nexttoken(); Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 23

24 /* */ String target = st.nexttoken(); String chatstr = st.nexttoken(); String message = "300 BROADCAST " broadcastmessage(message); else if("102".equals(command)) { else if("104".equals(command)) { else if("110".equals(command)) { String playerid = st.nexttoken(); sendroomlist(playerid); else if("112".equals(command)) { +playerid+" * ["+player.playerid+"] "+chatstr; // 112 playerid roomid String playerid = st.nexttoken(); String roomid = st.nexttoken(); senduserlist(playerid, roomid); els e if("120".equals(command)) { // 120 playerid roomid String playerid = st.nexttoken(); String roomid = st.nexttoken(); makeroom(playerid, roomid); broadcastroomlist(); else if("122".equals(command)) { // 122 playerid roomid else if("180".equals(command)) { // 180 JOIN playerid else if("182".equals(command)) { // 182 LEAVE playerid catch(socketexception ne) { removeplayer(player); catch(ioexception ne) { removeplayer(player); Room. Room., Lobby, Room., chatlist ServerPlayer Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 24

25 , Room playerlist., Lobby Room,. Room Lobby.,. Room ServerPlayer receivemessage,. class Room extends Thread { String roomid=null; ServerPlayer hostplayer=null; Vector playerlist=null; /* */ public Room(String roomid, ServerPlayer player) { this.roomid = roomid; this.hostplayer = player; playerlist = new Vector(); addplayer(player); synchronized public void addplayer(serverplayer player) { if(!playerlist.contains(player)) { playerlist.addelement(player); player.room = this; broadcastuserlist(); if(playerlist.size() == 2) { startgame(); synchronized public void removeplayer(serverplayer player) { if(player == null) { return; player.room = null; if(playerlist.contains(player)) { playerlist.removeelement(player); player.lobby.takeplayerfromroom(player); if(playerlist.size() == 0) { player.lobby.removeroom(roomid); broadcastuserlist(); Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 25

26 public void run() { String receive=null, message=null; Enumeration enum=null; ServerPlayer player=null; while(true) { // Read Data try { Thread.sleep(50); catch(interruptedexception ie) { enum = playerlist.elements(); while(enum.hasmoreelements()) { player = (ServerPlayer)enum.nextElement(); try { receive = player.receivemessage(); if(receive == null "".equals(receive)) { continue; // MW Game Protocol // nnn arg1 arg2 arg3... StringTokenizer st = new StringTokenizer(receive, " "); String command = st.nexttoken(); if("500".equals(command)) { // 500 BROADCAST playerid * chatstr else if("502".equals(command)) { else if("504".equals(command)) { else if("512".equals(command)) { // 512 playerid roomid else if("520".equals(command)) { // 520 START playerid else if("522".equals(command)) { // 522 PUT playerid [KAWUI BAWUI BO] else if("524".equals(command)) { // 524 POINT playerid point1 else if("580".equals(command)) { // 580 JOIN_ROOM playerid else if("582".equals(command)) { // 582 EXIT_ROOM playerid catch(socketexception e) { //Stream doesn't exist. removeplayer(player); catch(ioexception e) { //Stream doesn't exist. removeplayer(player); catch(exception e) { Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 26

27 ClientLobby Runnable Applet. ClientLobby.,., ClientLobby Client processmessage,.., ClientLobby init, BufferedReader PrintWriter I/O., Client sendtoserver receivemessage. ClientLobby, start stop., run, ClientLobby Client processmessage., ClientLobby processmessage. public class ClientLobby extends Applet implements Runnable { static String KAWUI_BAWUI_BO_GAME_SERVER; final static int KAWUI_BAWUI_BO_GAME_PORT=4001; public Socket socket=null; public BufferedReader is=null; public PrintWriter os=null; public void init() { KAWUI_BAWUI_BO_GAME_SERVER = getcodebase().gethost(); kawuibawuibocardlayout = new CardLayout(); cardpanel = new Panel(kawuiBawuiBoCardLayout); lobbypanel = initlobbypanel(); boardpanel = new ClientRoom(ClientLobby.this); connect(); cardpanel.add(lobbypanel, "LobbyPanel"); cardpanel.add(boardpanel, "BoardPanel"); setlayout(new BorderLayout()); Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 27

28 add("center", cardpanel); kawuibawuibocardlayout.show(cardpanel, "LobbyPanel"); public Panel initlobbypanel() { /* */ return(lobbypanel); private void connect() { playerid = ""+new Date().getTime(); // try { socket = new Socket(KAWUI_BAWUI_BO_GAME_SERVER, KAWUI_BAWUI_BO_GAME_PORT); is = new BufferedReader(new InputStreamReader(socket.getInputStream())); os = new PrintWriter(socket.getOutputStream(), true); String receive=null; StringTokenizer st = null; String command = null; try { receive = receivemessage(); // "UserName" is read sendtoserver(playerid); socket.setsotimeout(10); // 10ms catch(exception e) { //Unknown error. Throw tantrum. chatarea.append(" : "+e+"\n"); catch(unknownhostexception e) { chatarea.append(" : "+e+"\n"); stop(); return; catch(socketexception e) { chatarea.append(" : "+e+"\n"); stop(); return; catch(ioexception e) { chatarea.append(" : "+e+"\n"); stop(); return; public synchronized void start() { /* */ public synchronized void stop() { /* */ Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 28

29 public void sendtoserver(string message) { if(message!= null) { os.println(message); os.flush(); if(os.checkerror()) { public String receivemessage() throws SocketException { String message = null; try { message = is.readline(); catch(socketexception e) { throw(e); catch(exception e) { return ""; return message; public void run() { String receive=null; while(thread.currentthread() == clientlobbythread) { try { Thread.sleep(100); catch(interruptedexception e) { try { receive = receivemessage(); if((receive == null) ("".equals(receive))) { continue; processmessage(receive); boardpanel.processmessage(receive); catch(socketexception e) { //Stream doesn't exist. stop(); return; catch(exception e) { //Unknown error. Throw tantrum. public void processmessage(string receive) { StringTokenizer st = new StringTokenizer(receive, " "); String command = st.nexttoken(); if("300".equals(command)) { // // 300 BROADCAST playerid * chatstr Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 29

30 String type = st.nexttoken(); String playerid = st.nexttoken(); String target = st.nexttoken(); String chatstr = st.nexttoken(); chatarea.append(chatstr+"\n"); else if("302".equals(command)) { // /* */ Client,. Client Panel.., Client ClientLobby..,., Client processmessage ClientLobby run. public class ClientRoom extends Panel { ClientLobby parentapplet=null; /* */ public ClientRoom(ClientLobby parentapplet) { this.parentapplet = parentapplet; init(); public void init() { /* */ ActionListener al = new ActionListener() { public void actionperformed(actionevent e) { String message=null; if(e.getsource() == chatfield) { String chatstr = chatfield.gettext(); if(!"".equals(chatstr)) { message = "500 BROADCAST " +parentapplet.playerid+" * "+chatstr; sendtoserver(message); Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 30

31 ; chatfield.settext(""); else if(e.getsource() == kawuibutton) { message = "522 PUT "+parentapplet.playerid+" KAWUI"; sendtoserver(message); messageboard("."); setbuttonevent(false); else if(e.getsource() == bawuibutton) { message = "522 PUT "+parentapplet.playerid+" BAWUI"; sendtoserver(message); messageboard("."); setbuttonevent(false); else if(e.getsource() == bobutton) { message = "522 PUT "+parentapplet.playerid+" BO"; sendtoserver(message); messageboard("."); setbuttonevent(false); else if(e.getsource() == exitbutton) { sendtoserver("582 EXIT_ROOM "+parentapplet.playerid); parentapplet.kawuibawuibocardlayout.show(parentapplet.cardpanel, parentapplet.buttondefaultsetting(); "LobbyPanel"); chatfield.addactionlistener(al); kawuibutton.addactionlistener(al); bawuibutton.addactionlistener(al); bobutton.addactionlistener(al); exitbutton.addactionlistener(al); /* */ // offimage = parentapplet.createimage(parentapplet.getsize().width, offgraphics = offimage.getgraphics(); // public void update(graphics g) { paint(g); public void paint(graphics g) { parentapplet.getsize().height); offgraphics.drawimage(backgroundimage, 0, 0, this); offgraphics.drawimage(kawuiimage, 110, 190, 100, 100, this); offgraphics.drawimage(bawuiimage, 355, 190, 100, 100, this); switch(myx) { case 0: offgraphics.drawimage(kawuiimage, 110, 190, 100, 100, this); break; case 1: offgraphics.drawimage(bawuiimage, 110, 190, 100, 100, this); break; case 2: offgraphics.drawimage(boimage, 110, 190, 100, 100, this); break; Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 31

32 default: offgraphics.setcolor(color.lightgray); offgraphics.fillrect(110, 190, 100, 100); break; switch(yourx) { case 0: offgraphics.drawimage(kawuiimage, 355, 190, 100, 100, this); break; case 1: offgraphics.drawimage(bawuiimage, 355, 190, 100, 100, this); break; case 2: offgraphics.drawimage(boimage, 355, 190, 100, 100, this); break; default: offgraphics.setcolor(color.lightgray); offgraphics.fillrect(355, 190, 100, 100); break; g.drawimage(offimage, 0, 0, this); public void messageboard(string message) { chatarea.append("\n[ ] "+message+"\n\n"); public String receivemessage() throws SocketException { try { return(parentapplet.receivemessage()); catch(socketexception e) { throw(e); public void sendtoserver(string message) { /* */ parentapplet.sendtoserver(message); public void processmessage(string receive) { StringTokenizer st = new StringTokenizer(receive, " "); String command = st.nexttoken(); if("700".equals(command)) { // // 700 BROADCAST playerid * chatstr String type = st.nexttoken(); String playerid = st.nexttoken(); String target = st.nexttoken(); String chatstr = st.next Token(); chatarea.append(chatstr+"\n"); else if("702".equals(command)) { // /* */ /* */ Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 32

33 , 3.,.,,.,. 3. Java Network KawuiBawuiBo Game Programming from Yongwoo s Park 33

Chap12

Chap12 12 12Java RMI 121 RMI 2 121 RMI 3 - RMI, CORBA 121 RMI RMI RMI (remote object) 4 - ( ) UnicastRemoteObject, 121 RMI 5 class A - class B - ( ) class A a() class Bb() 121 RMI 6 RMI / 121 RMI RMI 1 2 ( 7)

More information

자바로

자바로 ! from Yongwoo s Park ZIP,,,,,,,??!?, 1, 1 1, 1 (Snow Ball), /,, 5,,,, 3, 3, 5, 7,,,,,,! ,, ZIP, ZIP, images/logojpg : images/imageszip :, backgroundjpg, shadowgif, fallgif, ballgif, sf1gif, sf2gif, sf3gif,

More information

Microsoft PowerPoint - Supplement-03-TCP Programming.ppt [혾환 몚드]

Microsoft PowerPoint - Supplement-03-TCP Programming.ppt [혾환 몚드] - Socket Programming in Java - 목찚 소쌓소개 자바에서의 TCP 프로귞랚작성방법 죌요큎래슀와메소드 HTTP 프로토윜을읎용한예제 에윔프로귞랚 Q/A 에윔프로귞랚 - EchoServer 에윔프로귞랚 - EchoClient TCP Programming 1 소쌓소개 IP, Port, and Socket 포튞 (Port): 전송계잵에서통신을수행하는응용프로귞랚을찟Ʞ위한죌소

More information

자바-11장N'1-502

자바-11장N'1-502 C h a p t e r 11 java.net.,,., (TCP/IP) (UDP/IP).,. 1 ISO OSI 7 1977 (ISO, International Standards Organization) (OSI, Open Systems Interconnection). 6 1983 X.200. OSI 7 [ 11-1] 7. 1 (Physical Layer),

More information

JMF3_심빈구.PDF

JMF3_심빈구.PDF JMF JSTORM http://wwwjstormpekr Issued by: < > Revision: Document Information Document title: Document file name: Revision number: Issued by: JMF3_ doc Issue Date:

More information

Microsoft PowerPoint - 03-TCP Programming.ppt

Microsoft PowerPoint - 03-TCP Programming.ppt Chapter 3. - Socket in Java - 목찚 소쌓소개 자바에서의 프로귞랚작성방법 죌요큎래슀와메소드 HTTP 프로토윜을읎용한예제 에윔프로귞랚 에윔프로귞랚 - EchoServer 에윔프로귞랚 - EchoClient Q/A 1 1 소쌓소개 IP,, and Socket 포튞 (): 전송계잵에서통신을수행하는응용프로귞랚을찟Ʞ위한죌소 소쌓 (Socket):

More information

Microsoft PowerPoint - 04-UDP Programming.ppt

Microsoft PowerPoint - 04-UDP Programming.ppt Chapter 4. UDP Dongwon Jeong djeong@kunsan.ac.kr http://ist.kunsan.ac.kr/ Dept. of Informatics & Statistics 목찚 UDP 1 1 UDP 개념 자바 UDP 프로귞랚작성 큎띌읎얞튞와서버몚두 DatagramSocket 큎래슀로생성 상혞간통신은 DatagramPacket 큎래슀륌읎용하여

More information

12-file.key

12-file.key 11 (String).. java.lang.stringbuffer. s String s = "abcd"; s = s + "e"; a b c d e a b c d e ,., "910359,, " "910359" " " " " (token) (token),, (delimiter). java.util.stringtokenizer String s = "910359,,

More information

<4D F736F F F696E74202D20C1A63236C0E520BED6C7C3B8B428B0ADC0C729205BC8A3C8AF20B8F0B5E55D>

<4D F736F F F696E74202D20C1A63236C0E520BED6C7C3B8B428B0ADC0C729205BC8A3C8AF20B8F0B5E55D> Power Java 제 26 장애플늿 읎번장에서학습할낎용 애플늿소개 애플늿작성및소개 애플늿의생명죌Ʞ 애플늿에서의귞래픜컎포넌튞의소개 Applet API의읎용 웹람띌우저상에서싀행되는작은프로귞랚읞애플늿에대하여학습합니닀. 애플늿읎란? 애플늿은웹페읎지같은 HTML 묞서안에낎장되얎싀행되는자바프로귞랚읎닀. 애플늿을싀행시킀는두가지방법 1. 웹람띌우저륌읎용하는방법 2. Appletviewer륌읎용하는방법

More information

rmi_박쀀용_final.PDF

rmi_박쀀용_final.PDF (RMI) - JSTORM http://wwwjstormpekr (RMI)- Document title: Document file name: Revision number: Issued by: Document Information (RMI)- rmi finaldoc Issue Date: Status:

More information

13-Java Network Programming

13-Java Network Programming JAVA Programming Language JAVA Network Programming IP Address(Internet Protocol Address) URL(Uniform Resource Location) TCP(Transmission Control Protocol) Socket UDP(User Datagram Protocol) Client / Server

More information

PowerPoint 프레젠테읎션

PowerPoint 프레젠테읎션 @ Lesson 2... ( ). ( ). @ vs. logic data method variable behavior attribute method field Flow (Type), ( ) member @ () : C program Method A ( ) Method B ( ) Method C () program : Java, C++, C# data @ Program

More information

자바GUI싀전프로귞래밍2_장대원.PDF

자바GUI싀전프로귞래밍2_장대원.PDF JAVA GUI - 2 JSTORM http://wwwjstormpekr JAVA GUI - 2 Issued by: < > Document Information Document title: JAVA GUI - 2 Document file name: Revision number: Issued by: Issue Date:

More information

<4D F736F F F696E74202D20C1A63235C0E520B3D7C6AEBFF6C5A920C7C1B7CEB1D7B7A1B9D628B0ADC0C729205BC8A3C8AF20B8F0B5E55D>

<4D F736F F F696E74202D20C1A63235C0E520B3D7C6AEBFF6C5A920C7C1B7CEB1D7B7A1B9D628B0ADC0C729205BC8A3C8AF20B8F0B5E55D> Power Java 제 25 장넀튞워크프로귞래밍 읎번장에서학습할낎용 넀튞워크프로귞래밍의개요 URL 큎래슀 TCP륌읎용한통신 TCP륌읎용한서버제작 TCP륌읎용한큎띌읎얞튞제작 UDP 륌읎용한통신 자바륌읎용하여서 TCP/IP 통신을읎용하는응응프로귞랚을작성하여뎅시닀. 서버와큎띌읎얞튞 서버 (Server): 사용자듀에게서비슀륌제공하는컎퓚터 큎띌읎얞튞 (Client):

More information

PowerPoint 프레젠테읎션

PowerPoint 프레젠테읎션 @ Lesson 3 if, if else, if else if, switch case for, while, do while break, continue : System.in, args, JOptionPane for (,, ) @ vs. logic data method variable Data Data Flow (Type), ( ) @ Member field

More information

02 C h a p t e r Java

02 C h a p t e r Java 02 C h a p t e r Java Bioinformatics in J a va,, 2 1,,,, C++, Python, (Java),,, (http://wwwbiojavaorg),, 13, 3D GUI,,, (Java programming language) (Sun Microsystems) 1995 1990 (green project) TV 22 CHAPTER

More information

10자ᆌ.key

10자ᆌ.key JAVA Programming 1 2 (Event Driven Programming)! :,,,! ( )! : (batch programming)!! ( : )!!!! 3 (Mouse Event, Action Event) (Mouse Event, Action Event) (Mouse Event, Container Event) (Key Event) (Key Event,

More information

Microsoft PowerPoint - ÀÚ¹Ù08Àå-1.ppt

Microsoft PowerPoint - ÀÚ¹Ù08Àå-1.ppt AWT 컎포넌튞 (1) 1. AWT 팚킀지 2. AWT 프로귞랚곌읎벀튞 3. Component 큎래슀 4. 컎포넌튞색칠하Ʞ AWT GUI 륌만듀Ʞ위한 API 윈도우프로귞래밍을위한큎래슀와도구륌포핚 Graphical User Interface 귞래픜요소륌통핎프로귞랚곌대화하는방식 귞래픜요소륌 GUI 컎포넌튞띌핚 윈도우프로귞랚만듀Ʞ ê°„ë‹ší•œ AWT 프로귞랚 import

More information

10-Java Applet

10-Java Applet JAVA Programming Language JAVA Applet Java Applet >APPLET< >PARAM< HTML JAR 2 JAVA APPLET HTML HTML main( ). public Applet 3 (HelloWorld.html) Applet

More information

비ꞎ쿡-자바 00앞부속

비ꞎ쿡-자바 00앞부속 IT COOKBOOK 14 Java P r e f a c e Stay HungryStay Foolish 3D 15 C 3 16 Stay HungryStay Foolish CEO 2005 L e c t u r e S c h e d u l e 1 14 PPT API C A b o u t T h i s B o o k IT CookBook for Beginner Chapter

More information

제8장 자바 GUI 프로귞래밍 II

제8장 자바 GUI 프로귞래밍 II 제8장 MVC Model 8.1 MVC 몚덞 (1/7) MVC (Model, View, Controller) 몚덞 슀윙은 MVC 몚덞에Ʞ쎈륌두고있닀. MVC란 Xerox의연구소에서 Smalltalk 얞얎륌바탕윌로사용자읞터페읎슀륌개발하Ʞ위한방법 MVC는 3개의구성요소로구성 Model : 응용프로귞랚의자료륌표현하Ʞ위한몚덞 View : 자료륌시각적윌로 (GUI 방식윌로

More information

PowerPoint 프레젠테읎션

PowerPoint 프레젠테읎션 @ Lesson 1,..... @ 1 Green Project 1991 Oak Java 1995. 5 December '90 by Patrick Naughton, Mike Sheridan and James Gosling Embedded in various consumer electronic device 1992. 9. 3 Star 7 1993 www portability

More information

3ÆÄÆ®-11

3ÆÄÆ®-11 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Chapter 15 Chapter 16 Chapter 17 C # N e t w o r k P r o g r a m m i n g Part 3 _ chapter 11 ICMP >>> 430 Chapter 11 _ 1 431 Part 3 _ 432 Chapter 11 _ N o t

More information

제11장 프로섞슀와 쓰레드

제11장 프로섞슀와 쓰레드 제9장자바쓰레드 9.1 Thread Ʞ쎈 (1/5) 프로귞랚 명령얎듀의연속 (a sequence of instruction) 프로섞슀 / Thread 싀행쀑읞프로귞랚 (program in execution) 프로섞슀생성곌싀행을위한핚수듀 자바 Thread 2 9.1 Thread Ʞ쎈 (2/5) 프로섞슀닚위작업의묞제점 프로섞슀생성시였버헀드 컚텍슀튞슀위치였버헀드

More information

<4D F736F F F696E74202D20C1A63139C0E520B9E8C4A120B0FCB8AEC0DA28B0ADC0C729205BC8A3C8AF20B8F0B5E55D>

<4D F736F F F696E74202D20C1A63139C0E520B9E8C4A120B0FCB8AEC0DA28B0ADC0C729205BC8A3C8AF20B8F0B5E55D> Power Java 제 19 장배치ꎀ늬자 읎번장에서학습할낎용 배치ꎀ늬자의개요 배치ꎀ늬자의사용 FlowLayout BorderLayout GridLayout BoxLayout CardLayout 절대위치로배치 컚테읎너안에서컎포넌튞륌배치하는방법에대하여삎펎뎅시닀. 배치ꎀ늬자 (layout manager) 컚테읎너안의각컎포넌튞의위치와크Ʞ륌결정하는작업 [3/70] 상당히닀륎게볎읞닀.

More information

(Microsoft PowerPoint - LZVNQBAJWGTC.ppt [\310\243\310\257 \270\360\265\345])

(Microsoft PowerPoint - LZVNQBAJWGTC.ppt [\310\243\310\257 \270\360\265\345]) GUI 읞터페읎슀의읎벀튞 학습목표 윈도우환겜에서작성된 GUI 읞터페읎슀의읎벀튞개념을읎핎한닀. 닀양한컎포넌튞에대한읎벀튞륌처늬한닀 읎벀튞란? 자바읎벀튞란 사용자가킀볎드, 마우슀등의장치로부터 AWT 컎포넌튞에발생시킀는몚든사걎을의믞 읎벀튞죌도형프로귞랚은사용자로부터발생된읎벀튞륌처늬하여사용자와상혞작용을가능하게핚 자바읎벀튞몚덞 컎퓚터 킀볎드 욎영첎제 마우슀 읎벀튞객첎자바가상뚞신읎벀튞소슀객첎읎벀튞늬슀너객첎애플늬쌀읎션

More information

JMF2_심빈구.PDF

JMF2_심빈구.PDF JMF JSTORM http://wwwjstormpekr Issued by: < > Document Information Document title: Document file name: Revision number: Issued by: JMF2_ doc Issue Date: Status: < > raica@nownurinet

More information

였버띌읎딩 (Overriding)

였버띌읎딩 (Overriding) WindowEvent WindowEvent 윈도우가엎늬거나 (opened) 닫힐때 (closed) 활성화되거나 (activated) 비활성화될때 (deactivated) 최소화되거나 (iconified) 복귀될때 (deiconified) 윈도우닫힘버튌을누륌때 (closing) WindowEvent 수신자 abstract class WindowListener

More information

ch09

ch09 9 Chapter CHAPTER GOALS B I G J A V A 436 CHAPTER CONTENTS 9.1 436 Syntax 9.1 441 Syntax 9.2 442 Common Error 9.1 442 9.2 443 Syntax 9.3 445 Advanced Topic 9.1 445 9.3 446 9.4 448 Syntax 9.4 454 Advanced

More information

æ­¯JavaExceptionHandling.PDF

æ­¯JavaExceptionHandling.PDF (2001 3 ) from Yongwoo s Park Java Exception Handling Programming from Yongwoo s Park 1 Java Exception Handling Programming from Yongwoo s Park 2 1 4 11 4 4 try/catch 5 try/catch/finally 9 11 12 13 13

More information

<4D F736F F F696E74202D20C1A63138C0E520C0CCBAA5C6AE20C3B3B8AE28B0ADC0C729205BC8A3C8AF20B8F0B5E55D>

<4D F736F F F696E74202D20C1A63138C0E520C0CCBAA5C6AE20C3B3B8AE28B0ADC0C729205BC8A3C8AF20B8F0B5E55D> Power Java 제 18 장읎벀튞처늬 읎번장에서학습할낎용 읎벀튞처늬의개요 읎벀튞 액션읎벀튞 Key, Mouse, MouseMotion 얎댑터큎래슀 버튌을누륎멎반응하도록만듀얎뎅시닀. 읎번장의목표 버튌을누륎멎버튌의텍슀튞가변겜되게한닀. 읎벀튞처늬곌정 읎벀튞처늬곌정 (1) 읎벀튞륌발생하는컎포넌튞륌생성하여알한닀. 읎벀튞처늬곌정 (2) 읎벀튞늬슀너큎래슀륌작성한닀.

More information

<4D F736F F F696E74202D20C1A63233C0E520B1D7B7A1C7C820C7C1B7CEB1D7B7A1B9D628B0ADC0C729205BC8A3C8AF20B8F0B5E55D>

<4D F736F F F696E74202D20C1A63233C0E520B1D7B7A1C7C820C7C1B7CEB1D7B7A1B9D628B0ADC0C729205BC8A3C8AF20B8F0B5E55D> Power Java 제 23 장귞래픜프로귞래밍 읎번장에서학습할낎용 자바에서의귞래픜 Ʞ쎈사항 Ʞ쎈도형귞늬Ʞ 색상 폰튾 Java 2D Java 2D륌읎용한귞늬Ʞ Java 2D 륌읎용한채우Ʞ 도형회전곌평행읎동 자바륌읎용하여서화멎에귞늌을귞렀뎅시닀. 자바귞래픜데몚 자바귞래픜의두가지방법 자바귞래픜 AWT Java 2D AWT륌사용하멎Ʞ볞적읞도형듀을쉜게귞늎수있닀. 얎디서나잘싀행된닀.

More information

Microsoft PowerPoint - RMI.ppt

Microsoft PowerPoint - RMI.ppt ( 분산통신싀습 ) RMI RMI 익히Ʞ 1. 분산환겜에서동작하는 message-passing을읎용한 boundedbuffer 핎법프로귞랚을싀행핎볎섞요. 소슀윔드 : ftp://211.119.245.153 -> os -> OSJavaSources -> ch15 -> rmi http://marvel el.incheon.ac.kr의 Information Unix

More information

Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Cras

Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Cras Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Crash Unity SDK... Log & Crash Search. - Unity3D v4.0 ios

More information

5자ᆌ.key

5자ᆌ.key JAVA Programming 1 (inheritance) 2!,!! 4 3 4!!!! 5 public class Person {... public class Student extends Person { // Person Student... public class StudentWorker extends Student { // Student StudentWorker...!

More information

Microsoft PowerPoint - [EEL2] Lab10.pptx

Microsoft PowerPoint - [EEL2] Lab10.pptx Lab10 (Week 13) 넀튞워크프로귞래밍 전자공학싀험 2 Week13: 싀습곌제 (Lab10) Lab10 #1~#4 싀습음싀습시간종료시까지읎메음로제출 읎메음제목 : [EEL2] Lab10-Part1 Lab10 #5~#7 닀음죌싀습시간시작시하드칎플 ( 늬포튞 ) 로제출 늬포튞제목 : [EEL2] Lab10-Part2 최소 1 시간은싀습싀에서싀습을진행핎알합니닀.

More information

PowerPoint Presentation

PowerPoint Presentation 객첎지향프로귞래밍 읞터페읎슀, 람닀식, 팚킀지 ( 싀습 ) 손시욎 ssw5176@kangwon.ac.kr 예제 1. 홈넀튞워킹 public interface RemoteControl { public void turnon(); // 가전제품을쌠닀. public void turnoff(); // 가전제품을끈닀. 읞터페읎슀륌구현 public class Television

More information

14-Servlet

14-Servlet JAVA Programming Language Servlet (GenericServlet) HTTP (HttpServlet) 2 (1)? CGI 3 (2) http://jakarta.apache.org JSDK(Java Servlet Development Kit) 4 (3) CGI CGI(Common Gateway Interface) /,,, Client Server

More information

<C0CCBCBCBFB52DC1A4B4EBBFF82DBCAEBBE7B3EDB9AE2D313939392D382E687770>

<C0CCBCBCBFB52DC1A4B4EBBFF82DBCAEBBE7B3EDB9AE2D313939392D382E687770> i ii iii iv v vi 1 2 3 4 가상대학 시슀템의 국낎왞 현황 조사 가상대학 플랫폌 개발 읎상적읞 가상대학시슀템의 믞래상 제안 5 웹-êž°ë°˜ 가상대학 시슀템 전통적읞 교수 방법 시간/공간 제앜을 극복한 학습동Ʞ 부여 교수의 음방적읞 낎용전달 교수와 학생간의 상혞작용 동료 학생듀 간의 상혞작용 가상대학 욎영 공지사항,강의록 자료싀, 메몚 질의응답,

More information

6죌찚.key

6죌찚.key 6, Process concept A program in execution Program code PCB (process control block) Program counter, registers, etc. Stack Heap Data section => global variable Process in memory Process state New Running

More information

9자ᆌ.key

9자ᆌ.key JAVA Programming 1 GUI(Graphical User Interface) 2 GUI!,! GUI! GUI, GUI GUI! GUI AWT Swing AWT - java.awt Swing - javax.swing AWT Swing 3 AWT(Abstract Windowing Toolkit)! GUI! java.awt! AWT (Heavy weight

More information

FileMaker ODBC and JDBC Guide

FileMaker ODBC and JDBC Guide FileMaker 13 5 5 5 6 6 6 7 7 8 8 8 8 9 9 10 10 11 11 12 12 12 12 12 12 13 13 14 14 16 16 18 4 19 19 20 20 21 21 21 23 23 23 23 25 26 26 26 26 27 28 28 28 28 29 31 31 32 33 33 33 33 34 34 35 35 35 36 1

More information

Cluster management software

Cluster management software 자바프로귞래밍 (OCJP 국제공읞자격췚득쀑심 ) 충북대학교정볎통신공학부 최믌 읎벀튞처늬 지ꞈ까지 GUI 륌구성하는 Component 의종류와읎 Component 듀을 Container 위에적절하게배치하Ʞ위한 LayoutManager 륌학습하였음 앞에서만듀었던 GUI 프로귞랚은몚양만귞럎듯할뿐, 싀제 Button 을누륎거나, Frame 우잡상닚의 X 표시륌큎늭핎도아묎런동작을하지않음읎벀튞처늬가포핚되얎있지않Ʞ때묞

More information

신림프로그래머_클린코드.key

신림프로그래머_클린코드.key CLEAN CODE 6 11st Front Dev. Team 6 1. 2. 3. checked exception 4. 5. 6. 11 : 2 4 : java (50%), javascript (35%), SQL/PL-SQL (15%) : Spring, ibatis, Oracle, jquery ? , (, ) ( ) 큎늰윔드륌 묎시한닀멎 . 6 1. ,,,!

More information

Network Programming

Network Programming Part 4 자바넀튞워크프로귞래밍 1. Java IO 2. 슀레드 (Thread) 큎래슀의소개 3. Java Socket 1. 자바입출력 Java_source->src->ch11 1.0 I/O Stream

More information

Cluster management software

Cluster management software 자바넀튞워크프로귞래밍 (OCJP 국제공읞자격췚득쀑심 ) 충북대학교 최믌 Ʞ볞예제 예왞큎래슀륌정의하고사용하는예제 class NewException extends Exception { public class ExceptionTest { static void methoda() throws NewException { System.out.println("NewException

More information

Microsoft PowerPoint - EEL2 Lecture10 -Swing and Event Handling.pptx

Microsoft PowerPoint - EEL2 Lecture10 -Swing and Event Handling.pptx 전자공학싀험 2 1 WEEK10: SWING AND EVENT HANDLING Fall, 2014 걎국대전자공학부 Notice: 죌별강의 / 싀습 /HW ë‚Žìš© 2 Week Date 강의죌제 Homework 싀습곌제 Handouts 1 09월 03음 Orientation Lab1 Lecture0 2 09월 10음 추석 3 09월 17음 Using Objects

More information

public class FlowLayoutPractice extends JFrame { public FlowLayoutPractice() { super("flowlayout Practice"); this. Container contentpane = getcontentp

public class FlowLayoutPractice extends JFrame { public FlowLayoutPractice() { super(flowlayout Practice); this. Container contentpane = getcontentp 8 장 1 번 public class MyFrame extends JFrame { public MyFrame(String title) { super(title); this. setsize(400,200); new MyFrame("Let's study Java"); 2번 public class MyBorderLayoutFrame extends JFrame {

More information

Network Programming

Network Programming Part 5 확장된 Network Programming Ʞ술 1. Remote Procedure Call 2. Remote Method Invocation 3. Object Request Broker 2. Java RMI

More information

목찚 INDEX JSON? - JSON 개요 - JSONObject - JSONArray 서욞시공공데읎터 API 삎펎볎Ʞ - 요청읞자삎펎볎Ʞ - Result Code - 출력값 HttpClient - HttpHelper 큎래슀작성 - JSONParser 큎래슀작성 공공

목찚 INDEX JSON? - JSON 개요 - JSONObject - JSONArray 서욞시공공데읎터 API 삎펎볎Ʞ - 요청읞자삎펎볎Ʞ - Result Code - 출력값 HttpClient - HttpHelper 큎래슀작성 - JSONParser 큎래슀작성 공공 메신저의새로욎혁신 채팅로뎇 챗뎇 (Chatbot) 입묞하Ʞ 소 읎 메 속 : 시엠아읎윔늬아 멄 : 임채묞 음 : soulgx@naver.com 1 목찚 INDEX JSON? - JSON 개요 - JSONObject - JSONArray 서욞시공공데읎터 API 삎펎볎Ʞ - 요청읞자삎펎볎Ʞ - Result Code - 출력값 HttpClient - HttpHelper

More information

Microsoft PowerPoint - 14죌찚 강의자료

Microsoft PowerPoint - 14죌찚 강의자료 Java 로만드는 Monster 잡Ʞ게임예제읎핎 2014. 12. 2 게임화멎및게임방법 Ʞ사쎈Ʞ위치 : (0,0) 아읎템 10 개랜덀생성 몬슀터 10 놈랜덀생성 Frame 하닚에Ʞ사위치와Ʞ사파워출력방향킀로Ʞ사읎동아읎템곌몬슀터는고정종료버튌큎늭하멎종료 Project 구성 GameMain.java GUI 환겜섀정, Main Method 게임객첎랚덀위치에생성 Event

More information

자바 프로귞래밍

자바 프로귞래밍 5 (kkman@mail.sangji.ac.kr) (Class), (template) (Object) public, final, abstract [modifier] class ClassName { // // (, ) Class Circle { int radius, color ; int x, y ; float getarea() { return 3.14159

More information

Java

Java Java http://cafedaumnet/pway Chapter 1 1 public static String format4(int targetnum){ String strnum = new String(IntegertoString(targetNum)); StringBuffer resultstr = new StringBuffer(); for(int i = strnumlength();

More information

07 자바ᄋᅎ 다야ᆌ한 클래스.key

07 자바ᄋᅎ 다야ᆌ한 클래스.key [ 07 ] . java.lang Object, Math, String, StringBuffer Byte, Short, Integer, Long, Float, Double, Boolean, Character. java.util Random, StringTokenizer Calendar, GregorianCalendar, Date. Collection, List,

More information

untitled

untitled - -, (insert) (delete) - - (insert) (delete) (top ) - - (insert) (rear) (delete) (front) A A B top A B C top push(a) push(b) push(c) A B top pop() top A B D push(d) top #define MAX_STACK_SIZE 100 int

More information

05-class.key

05-class.key 5 : 2 (method) (public) (private) (interface) 5.1 (Method), (public method) (private method) (constructor), 3 4 5.2 (client). (receiver)., System.out.println("Hello"); (client object) (receiver object)

More information

FileMaker ODBC and JDBC Guide

FileMaker ODBC and JDBC Guide FileMaker 14 5 5 5 5 6 6 6 7 7 7 8 8 8 9 9 10 10 11 11 12 12 12 12 12 13 13 14 15 16 17 18 18 19 19 20 20 20 21 21 21 22 22 22 22 23 24 24 24 24 25 27 27 28 29 29 29 29 30 30 31 31 31 32 1 1 1 1 1 1 1

More information

JavaGeneralProgramming.PDF

JavaGeneralProgramming.PDF , Java General Programming from Yongwoo s Park 1 , Java General Programming from Yongwoo s Park 2 , Java General Programming from Yongwoo s Park 3 < 1> (Java) ( 95/98/NT,, ) API , Java General Programming

More information

제1장 자바 ì–žì–Ž 소개

제1장 자바 ì–žì–Ž 소개 Java Network 10.1 TCP/IP 읎핎 TCP/IP 프로토윜계잵도 Applications Transport Internetwork IP Applications TCP/UDP ICMP ARP/RARP Network Interface and Hardware Network Interface and Hardware 10.1 TCP/IP 읎핎 TCP/IP

More information

쉜게 풀얎쓎 C 프로귞래밍

쉜게 풀얎쓎 C 프로귞래밍 Power Java 제 23 장슀레드 읎번장에서학습할낎용 슀레드의개요 슀레드의생성곌싀행 슀레드상태 슀레드의슀쌀쀄링 슀레드간의조정 슀레드는동시에여러개의프로귞랚을싀행하는횚곌륌냅니닀. 멀티태슀킹 멀티태슀킹 (muli-tasking) 는여러개의애플늬쌀읎션을동시에싀행하여서컎퓚터시슀템의성능을높읎Ʞ위한Ʞ법 슀레드란? 닀쀑슀레딩 (multi-threading) 은하나의프로귞랚읎동시에여러가지작업을할수있도록하는것

More information

Microsoft PowerPoint - 06-Chapter09-Event.ppt

Microsoft PowerPoint - 06-Chapter09-Event.ppt AWT 읎벀튞처늬하Ʞ 1. 읎벀튞처늬방식 2. 읎벀튞큎래슀와늬슀너 3. 읎벀튞얎댑터 4. 읎벀튞의종류 읎벀튞 (Event) 읎벀튞 사용자가 UI 컎포넌튞에대핎췚하는행위로읞한사걎읎벀튞Ʞ반프로귞래밍 묎한룚프륌돌멎서사용자의행위로읞한읎벀튞륌청췚하여응답하는형태로작동하는프로귞래밍 java.awt.event 읎벀튞처늬 AWT 컎포넌튞에서발생하는닀양한읎벀튞륌처늬하Ʞ위한읞터페읎슀와큎래슀제공

More information

K&R2 Reference Manual 번역볞

K&R2 Reference Manual 번역볞 typewriter structunion struct union if-else if if else if if else if if if if else else ; auto register static extern typedef void char short int long float double signed unsigned const volatile { } struct

More information

웹연동 } 웹 (Web) 환겜에서데읎터베읎슀시슀템을연동하는방법은닀음곌같닀 } Server Client 구조의통신 (2-Tier) } Server Middleware Client 구조의통신 (3-Tier) 2

웹연동 } 웹 (Web) 환겜에서데읎터베읎슀시슀템을연동하는방법은닀음곌같닀 } Server Client 구조의통신 (2-Tier) } Server Middleware Client 구조의통신 (3-Tier) 2 DB 와 WEB 연동 (1) [2-Tier] Java Applet 읎용 웹연동 } 웹 (Web) 환겜에서데읎터베읎슀시슀템을연동하는방법은닀음곌같닀 } Server Client 구조의통신 (2-Tier) } Server Middleware Client 구조의통신 (3-Tier) 2 JAVA Applet 을읎용한 Client Server 연동Ʞ법 } Applet

More information

PowerPoint 프레젠테읎션

PowerPoint 프레젠테읎션 @ Lesson 4 (Object) (Class) (Instance) (Method) (Constructor) Memory 1 UML 1 @ & 1 (Real World) (Software World) @ &.. () () @ & 2 (Real World) (Software World) OOA/ Modeling Abstraction Instantiation

More information

Java ~ Java program: main() class class» public static void main(string args[])» First.java (main class ) /* The first simple program */ public class

Java ~ Java program: main() class class» public static void main(string args[])» First.java (main class ) /* The first simple program */ public class Linux JAVA 1. http://java.sun.com/j2se/1.4.2/download.html J2SE 1.4.2 SDK 2. Linux RPM ( 9 ) 3. sh j2sdk-1_4_2_07-linux-i586-rpm.bin 4. rpm Uvh j2sdk-1_4_2_07-linux-i586-rpm 5. PATH JAVA 1. vi.bash_profile

More information

gnu-lee-oop-kor-lec10-1-chap10

gnu-lee-oop-kor-lec10-1-chap10 얎서와 Java 는처음읎지! 제 10 장읎벀튞처늬 읎벀튞분류 액션읎벀튞 킀읎벀튞 마우슀읎동읎벀튞 얎댑터큎래슀 슀윙컎포넌튞에의하여지원되는읎벀튞는크게두가지의칎테고늬로나누얎진닀. 사용자가버튌을큎늭하는겜우 사용자가메뉎항목을선택하는겜우 사용자가텍슀튞필드에서엔터킀륌누륎는겜우 두개의버튌을만듀얎서팚널의배겜색을변겜하는프로귞랚을작성하여볎자. 읎벀튞늬슀너는하나만생성한닀. class

More information

PowerPoint 프레젠테읎션

PowerPoint 프레젠테읎션 명품 Java Essential 1 2 학습목표 1. 소쌓통신에대한읎핎 2. 자바로간닚한소쌓통신프로귞랚작성 TCP/IP 소개 3 TCP/IP 프로토윜 두시슀템간에데읎터가손상없읎안전하게전송되도록하는통신프로토윜 TCP 에서동작하는응용프로귞랚사례 e-mail, FTP, 웹 (HTTP) 등 TCP/IP 특징 연결형통신 한번연결후계속데읎터전송가능 볎낞순서대로받아응용프로귞랚에게전달

More information

11자ᆌ.key

11자ᆌ.key JAVA Programming 1 GUI 2 2 1. GUI! GUI! GUI.! GUI! GUI 2. GUI!,,,!! GUI! GUI 11 : GUI 12 : GUI 3 4, JComponent 11-1 :, JComponent 5 import java.awt.*; import java.awt.event.*; import javax.swing.*; public

More information

09-interface.key

09-interface.key 9 Database insert(record r): boolean find(key k): Record 1 Record getkey(): Key * Record Key Database.? Key equals(key y): boolean Database insert(record r): boolean find(key k): Record * Database OK 1

More information

Microsoft PowerPoint - java1-lab5-ImageProcessorTestOOP.pptx

Microsoft PowerPoint - java1-lab5-ImageProcessorTestOOP.pptx 2018 학년도 1 학Ʞ JAVA 프로귞래밍 II 514760-1 2018 년뎄학Ʞ 5/10/2018 박겜신 Lab#1 (ImageTest) Lab#1 은영상파음 (Image) 을읜얎서정볎륌출력 Java Tutorials Lesson: Working with Images https://docs.oracle.com/javase/tutorial/2d/images/index.html

More information

03-JAVA Syntax(2).PDF

03-JAVA Syntax(2).PDF JAVA Programming Language Syntax of JAVA (literal) (Variable and data types) (Comments) (Arithmetic) (Comparisons) (Operators) 2 HelloWorld application Helloworldjava // class HelloWorld { //attribute

More information

fundamentalOfCommandPattern_calmglow_pattern_jstorm_1.0_f


fundamentalOfCommandPattern_calmglow_pattern_jstorm_1.0_f
 Command JSTORM http://www.jstorm.pe.kr Command Issued by: < > Revision: Document Information Document title: Command Document file name: Revision number: Issued by: Issue

More information

Connection 8 22 UniSQLConnection / / 9 3 UniSQL OID SET

Connection 8 22 UniSQLConnection / / 9 3 UniSQL OID SET 135-080 679-4 13 02-3430-1200 1 2 11 2 12 2 2 8 21 Connection 8 22 UniSQLConnection 8 23 8 24 / / 9 3 UniSQL 11 31 OID 11 311 11 312 14 313 16 314 17 32 SET 19 321 20 322 23 323 24 33 GLO 26 331 GLO 26

More information

MasoJava4_Dongbin.PDF

MasoJava4_Dongbin.PDF JSTORM http://wwwjstormpekr Issued by: < > Revision: Document Information Document title: Document file name: MasoJava4_Dongbindoc Revision number: Issued by: < > SI, dbin@handysoftcokr

More information

mytalk

mytalk 한국정볎볎혞학회소프튞웚얎볎안연구회 쎝ꎄ책임자 췚앜점분석팀 안쀀선 ( 항공대 ) 도겜구 ( 한양대 ) 도구개발팀도겜구 ( 한양대 ) 시큐얎윔딩팀 였섞만 ( 동국대 ) 전첎적읞 귞늌 IL Rules Flowgraph Generator Flowgraph Analyzer 흐늄귞래프 생성Ʞ 흐늄귞래프 분석Ʞ O parser 쀑간얞얎 O 파서 RDL

More information

PowerPoint Presentation

PowerPoint Presentation 객첎지향프로귞래밍 였류처늬 손시욎 ssw5176@kangwon.ac.kr 였류메시지륌분석한닀. 였류메시지에서많은낎용을알수있닀. 2 디버깅 디버거륌사용하멎프로귞랚에서쉜게였류륌감지하고진닚할수있닀. 디버거는쀑닚점을섀정하여서프로귞랚의싀행을제얎할수있윌며묞장 닚위로싀행하거나변수의값을삎펎볌수있닀. 3 읎큎늜슀에서디버깅 4 읎큎늜슀에서디버깅 5 읎큎늜슀의디버깅명령얎 6 예왞처늬

More information

01-OOPConcepts(2).PDF

01-OOPConcepts(2).PDF Object-Oriented Programming Concepts Tel: 02-824-5768 E-mail: hhcho@selabsoongsilackr? OOP (Object) (Encapsulation) (Message) (Class) (Inheritance) (Polymorphism) (Abstract Class) (Interface) 2 1 + = (Dependency)

More information

<4D F736F F F696E74202D20C1A63234C0E520C0D4C3E2B7C228B0ADC0C729205BC8A3C8AF20B8F0B5E55D>

<4D F736F F F696E74202D20C1A63234C0E520C0D4C3E2B7C228B0ADC0C729205BC8A3C8AF20B8F0B5E55D> Power Java 제 24 장입출력 읎번장에서학습할낎용 슀튞늌읎란? 슀튞늌의분류 바읎튞슀튞늌 묞자슀튞늌 형식입출력 명령얎행에서입출력 파음입출력 슀튞늌을읎용한입출력에대하여삎펎뎅시닀. 슀튞늌 (stream) 슀튞늌 (stream) 은 순서가있는데읎터의연속적읞흐늄 읎닀. 슀튞늌은입출력을묌의흐늄처럌간죌하는것읎닀. 슀튞늌듀은연결될수있닀. 쀑간점검묞제 1. 자바에서는입출력을묎엇읎띌고추상화하는가?

More information

13ÀåÃß°¡ºÐ

13ÀåÃß°¡ºÐ 13 CHAPTER 13 CHAPTER 2 3 4 5 6 7 06 android:background="#ffffffff"> 07

More information

목찚 BUG DEQUEUE 의 WAIT TIME 읎 1 쎈믞만읞겜우, 섀정한시간만큌대Ʞ하지않는묞제가있습니닀... 3 BUG [qp-select-pvo] group by 표현식에있는컬럌을찞조하는집합연산읎졎재하지않윌멎결ꎏ값였류가발생할수있습니닀... 4

목찚 BUG DEQUEUE 의 WAIT TIME 읎 1 쎈믞만읞겜우, 섀정한시간만큌대Ʞ하지않는묞제가있습니닀... 3 BUG [qp-select-pvo] group by 표현식에있는컬럌을찞조하는집합연산읎졎재하지않윌멎결ꎏ값였류가발생할수있습니닀... 4 ALTIBASE HDB 6.5.1.5.10 Patch Notes 목찚 BUG-46183 DEQUEUE 의 WAIT TIME 읎 1 쎈믞만읞겜우, 섀정한시간만큌대Ʞ하지않는묞제가있습니닀... 3 BUG-46249 [qp-select-pvo] group by 표현식에있는컬럌을찞조하는집합연산읎졎재하지않윌멎결ꎏ값였류가발생할수있습니닀... 4 BUG-46266 [sm]

More information

Java ...

Java ... 컎퓚터얞얎 1 Java 제얎묞 조성음 조걎묞 : if, switch 얎떠한조걎을조사하여각Ʞ닀륞명령을싀행 if 묞, switch 묞 if 묞 if - else 묞형식 if 묞형식 if ( 조걎식 ) { 명령묞 1; 명령묞 2;... if ( 조걎식 ) { 명령묞 1; 명령묞 2;... else { 명령묞 a; 명령묞 b;... 예제 1 정수륌입력받아짝수와홀수륌판별하는프로귞랚을작성하시였.

More information

03장

03장 CHAPTER3 ( ) Gallery 67 68 CHAPTER 3 Intent ACTION_PICK URI android provier MediaStore Images Media EXTERNAL_CONTENT_URI URI SD MediaStore Intent choosepictureintent = new Intent(Intent.ACTION_PICK, ë

More information

Microsoft PowerPoint - ÀÚ¹Ù08Àå-2.ppt

Microsoft PowerPoint - ÀÚ¹Ù08Àå-2.ppt AWT 컎포넌튞 (2) 1. 메뉎 2. 컚테읎너와컚튞례 3. 배치ꎀ늬자 메뉎ꎀ렚큎래슀계잵구조 Object MenuComponent MenuBar MenuItem Menu CheckboxMenuItem PopupMenu 메뉎 풀닀욎메뉎 제목표시쀄밑의메뉎바륌가짐 메뉎만듀Ʞ곌정 MenuBar 객첎생성 MenuBar 에추가할 Menu 객첎륌생성 Menu 에추가할또닀륞서람

More information

강의자료

강의자료 Copyright, 2014 MMLab, Dept. of ECE, UOS Java Swing 2014 년 3 월 최성종서욞시늜대학교전자전Ʞ컎퓚터공학부 chois@uos.ac.kr http://www.mmlab.net ì°šë¡€ 2014년 3월 Java Swing 2 2017-06-02 Seong Jong Choi Java Basic Concepts-3 Graphical

More information

Modern Javascript

Modern Javascript ES6 - Arrow Function Class Template String Destructuring Default, Rest, Spread let, const for..of Promises Module System Map, Set * Generator * Symbol * * https://babeljs.io/ Babel is a JavaScript compiler.

More information

4장.묞장

4장.묞장 묞장 1 배정묞 혌합묞 제얎묞 조걎묞반복묞분Ʞ묞 표쀀입출력 입출력 형식화된출력 [2/33] ANSI C 얞얎와유사 묞장의종류 [3/33] 값을변수에저장하는데사용 형태 : < 변수 > = < 식 > ; remainder = dividend % divisor; i = j = k = 0; x *= y; 형변환 ꎑ역화 (widening) 형변환 : 컎파음러에의핎자동적윌로변환

More information

슬띌읎드 1

슬띌읎드 1 UNIT 16 예왞처늬 로뎇 SW 교육원 3 êž° 최상훈 학습목표 2 예왞처늬구묞 try-catch-finally 묞을사용핛수있닀. 프로귞랚였류 3 프로귞랚였류의종류 컎파음에러 (compile-time error) : 컎파음싀행시발생 럮타임에러 (runtime error) : 프로귞랚싀행시발생 에러 (error) 프로귞랚윔드에의핎서핎결될수없는심각핚였류 ex)

More information

JMF1_심빈구.PDF

JMF1_심빈구.PDF JSTORM http://wwwjstormpekr Issued by: < > Revision: Document Information Document title: Document file name: Revision number: Issued by: 1_ doc Issue Date:

More information

11 템플늿적용 - Java Program Performance Tuning (김명혞Ʞ술읎사)

11 템플늿적용 - Java Program Performance Tuning (김명혞Ʞ술읎사) Java Program Performance Tuning ( ) n (Primes0) static List primes(int n) { List primes = new ArrayList(n); outer: for (int candidate = 2; n > 0; candidate++) { Iterator iter = primes.iterator(); while

More information

슬띌읎드 1

슬띌읎드 1 읎벀튞 () 란? - 사용자가입력장치 ( 킀볎드, 마우슀등 ) 등을읎용핎서발생하는사걎 - 읎벀튞륌처늬하는프로귞랚은읎벀튞가발생할때까지묎한룚프륌돌멎서대Ʞ상태에있는닀. 읎벀튞가발생하멎발생한읎벀튞의종류에따띌특정한작업을수행한닀. - 읎벀튞ꎀ렚프로귞랚작성을위핎 java.awt.event.* 팚킀지가필요 - 버튌을누륞겜우, 1 버튌큎늭읎벀튞발생 2 발생한읎벀튞읞식 ( 읎벀튞늬슀너가수행

More information

Interstage5 SOAP서비슀 섀정 가읎드

Interstage5 SOAP서비슀 섀정 가읎드 Interstage 5 Application Server ( Solaris ) SOAP Service Internet Sample Test SOAP Server Application SOAP Client Application CORBA/SOAP Server Gateway CORBA/SOAP Gateway Client INTERSTAGE SOAP Service

More information

PowerPoint Presentation

PowerPoint Presentation 객첎지향프로귞래밍 였류처늬 손시욎 ssw5176@kangwon.ac.kr 였류메시지륌분석한닀. 였류메시지에서많은낎용을알수있닀. 2 디버깅 디버거륌사용하멎프로귞랚에서쉜게였류륌감지하고진닚할수있닀. 디버거는쀑닚점을섀정하여서프로귞랚의싀행을제얎할수있윌며묞장 닚위로싀행하거나변수의값을삎펎볌수있닀. 3 읎큎늜슀에서디버깅 4 읎큎늜슀에서디버깅 5 읎큎늜슀의디버깅명령얎 6 예왞처늬

More information

슀레드의우선순위 우선순위섀정메소드 : void setpriority(int newpriority) newpriority 에섀정할수있는등꞉ : 1( 가장낮은우선순위 ) 부터 10( 가장높은우선순위 ) 가장높은우선순위 : MAX_PRIORITY, 볎통우선순위 : NORM_

슀레드의우선순위 우선순위섀정메소드 : void setpriority(int newpriority) newpriority 에섀정할수있는등꞉ : 1( 가장낮은우선순위 ) 부터 10( 가장높은우선순위 ) 가장높은우선순위 : MAX_PRIORITY, 볎통우선순위 : NORM_ 10 쎈동안사용자가입력하지않윌멎종료하는예제 ) import javax.swing.joptionpane; class AutoTermination { static boolean inputcheck = false; public static void main(string[] args) throws Exception { FirstThread th1 = new FirstThread();

More information

Contents. 1. PMD ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ 2. Metrics ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ 3. FindBugs ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ 4. ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ

Contents. 1. PMD ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ 2. Metrics ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ 3. FindBugs ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ 4. ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ 정적분석서 - 영닚얎수집왕 - Team.# 3 곌목명 소프튞웚얎몚덞링및분석 닎당교수 유쀀범교수님 201011320 김용현 팀원 201111360 손쀀익 201111347 김태혞 제출음자 2015-06-09 1 Contents. 1. PMD ㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍㆍ 2. Metrics

More information

JAVA PROGRAMMING 싀습 09. 예왞처늬

JAVA PROGRAMMING 싀습 09. 예왞처늬 2015 학년도 2 학Ʞ 예왞? 프로귞랚싀행쀑에발생하는예Ʞ치않은사걎 예왞가발생하는겜우 정수륌 0윌로나누는겜우 배엎의크Ʞ볎닀큰읞덱슀로배엎의원소륌접귌하는겜우 파음의마지막부분에서데읎터륌읜윌렀고하는겜우 예왞처늬 프로귞랚에묞제륌발생시킀지않고프로귞랚을싀행할수있게적절한조치륌췚하는것 자바는예왞처늬Ʞ륌읎용하여예왞처늬륌할수있는Ʞ법제공 자바는예왞륌객첎로췚꞉!! 나뉚수륌입력하시였

More information

슀레드륌적용하지않은결곌와슀레드륌적용한결곌의비교 1) 두개의작업을슀레드륌사용하지않고수행한예 ) : 순찚작업 class ThreadTest2 { System.out.print("-");// 화멎에 - 륌출력하는작업 System.out.print(" ");// 화멎에 륌출력

슀레드륌적용하지않은결곌와슀레드륌적용한결곌의비교 1) 두개의작업을슀레드륌사용하지않고수행한예 ) : 순찚작업 class ThreadTest2 { System.out.print(-);// 화멎에 - 륌출력하는작업 System.out.print( );// 화멎에 륌출력 ì‹€ (thread) 을읎용한병렬처늬 슀레드 (thread) 는싀을의믞한닀. 슉, 싀하나에여러작업듀읎꿰얎젞서순서적윌로처늬된닀. 귞런데, 싀을여러개 만듀고읎싀에여러작업듀을꿰얎서읎싀듀을순서적윌로처늬하게하멎, 여러개의작업듀읎한꺌번에처늬된닀. 슉, 음정한닚위시간당처늬되는작업의수륌슝가시킬수있닀. 슀레드생성방법에대한예제 ) class ThreadTest1 { ThreadClass1

More information

Contents Contents 2 1 Abstract 3 2 Infer Checkers Eradicate Infer....

Contents Contents 2 1 Abstract 3 2 Infer Checkers Eradicate Infer.... SV2016 정적분석볎고서 201214262 띌가영 201313250 서지혁 June 9, 2016 1 Contents Contents 2 1 Abstract 3 2 Infer 3 2.1 Checkers................................ 3 2.2 Eradicate............................... 3 2.3 Infer..................................

More information

쀑간고사

쀑간고사 Ʞ말고사 닎당교수 : 닚국대학교응용컎퓚터공학박겜신 답은반드시답안지에Ʞ술할것. 공간읎부족할겜우반드시답안지몇쪜의뒀에있닀고명Ʞ한 후Ʞ술할것. 귞왞의겜우의답안지뒀쪜읎나연습지에Ʞ술한낎용은답안윌로읞정안핚. 답 에는반드시넀몚륌쳐서확싀히표시할것. 답안지에학곌, 학번, 읎늄왞에볞읞의암혞 (4 자늬숫자 ) 륌Ʞ입하멎성적공고시학번대신암혞륌 사용할것임. // ArithmeticOperator

More information

학습목표 넀튞워크개요 TCP PORT URL/InetAddress Socket/TCP 을읎용한넀튞워크 2

학습목표 넀튞워크개요 TCP PORT URL/InetAddress Socket/TCP 을읎용한넀튞워크 2 Chapter 12 넀튞워크프로귞래밍 New Java Programming with a Workbook 학습목표 넀튞워크개요 TCP PORT URL/InetAddress Socket/TCP 을읎용한넀튞워크 2 Network 개요 넀튞워크 데읎터전송프로토윜을가지고통신하는연결된장치듀을쎝칭 넀튞워크망 3 TCP TCP (Transmission Control Protocol)

More information

Microsoft PowerPoint 자바-AWT컎포넌튞(Ch8).pptx

Microsoft PowerPoint 자바-AWT컎포넌튞(Ch8).pptx 5. 배치ꎀ늬자 1 AWT 컎포넌튞 1. AWT 프로귞랚곌읎벀튞 2. Component 큎래슀 3. 메뉎 4. 컚테읎너와컚튞례 AWT AWT: Abstract t Window Toolkit GUI 륌만듀Ʞ위한 API 윈도우프로귞래밍을위한큎래슀와도구륌포핚 Graphical User Interface 귞래픜요소륌통핎프로귞랚곌대화하는방식 귞래픜요소륌 GUI 컎포넌튞띌핚

More information