02 C h a p t e r Java

Similar documents
PowerPoint 프레젠테이션

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션

비긴쿡-자바 00앞부속

1

01-OOPConcepts(2).PDF

12-file.key

PowerPoint Presentation

초보자를 위한 자바 2 21일 완성 - 최신개정판

07 자바의 다양한 클래스.key

초보자를 위한 C# 21일 완성

rmi_박준용_final.PDF

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

1. 자바프로그램기초 및개발환경 2 장 & 3 장. 자바개발도구 충남대학교 컴퓨터공학과

untitled

PowerPoint 프레젠테이션

05-class.key

Microsoft PowerPoint - 04-UDP Programming.ppt

11 템플릿적용 - Java Program Performance Tuning (김명호기술이사)

K&R2 Reference Manual 번역본

untitled

[ 정보 ] 과학고 R&E 결과보고서 Monte Carlo Method 를이용한 고교배정시뮬레이션 연구기간 : ~ 연구책임자 : 강대욱 ( 전남대전자컴퓨터공학부 ) 지도교사 : 최미경 ( 전남과학고정보 컴퓨터과 ) 참여학생 : 박진명 ( 전

03-JAVA Syntax(2).PDF

歯JavaExceptionHandling.PDF

Connection 8 22 UniSQLConnection / / 9 3 UniSQL OID SET

자바 프로그래밍

5장.key

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


자바-11장N'1-502

Design Issues

프로그램을 학교 등지에서 조금이라도 배운 사람들을 위한 프로그래밍 노트 입니다. 저 역시 그 사람들 중 하나 입니다. 중고등학교 시절 학교 도서관, 새로 생긴 시립 도서관 등을 다니며 책을 보 고 정리하며 어느정도 독학으르 공부하긴 했지만, 자주 안하다 보면 금방 잊어

Chap12

Java

JMF3_심빈구.PDF

ilist.add(new Integer(1))과 같이 사용하지 않고 ilist.add(1)과 같이 사용한 것은 자바 5.0에 추가된 기본 자료형과 해당 객체 자료 형과의 오토박싱/언박싱 기능을 사용한 것으로 오토박싱이란 자바 컴파일러가 객체를 요구하는 곳에 기본 자료형

Microsoft PowerPoint - Java7.pptx

C프로-3장c03逞풚

자바GUI실전프로그래밍2_장대원.PDF

Interstage5 SOAP서비스 설정 가이드

3ÆÄÆ®-11

Microsoft PowerPoint - lec2.ppt

Microsoft PowerPoint - Supplement-03-TCP Programming.ppt [호환 모드]

09-interface.key

6주차.key

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

슬라이드 1

4. #include <stdio.h> #include <stdlib.h> int main() { functiona(); } void functiona() { printf("hihi\n"); } warning: conflicting types for functiona

Microsoft PowerPoint - 03-TCP Programming.ppt

Microsoft PowerPoint 자바-기본문법(Ch2).pptx

11장.key

강의10

PowerPoint Presentation

Microsoft PowerPoint - JavaPrimer.ppt [호환 모드]

Chap7.PDF

PowerPoint Presentation

Cluster management software

슬라이드 1

블로그_별책부록

초보자를 위한 C++

10장.key

Semantic Consistency in Information Exchange

13주-14주proc.PDF

슬라이드 1

JAVA PROGRAMMING 실습 02. 표준 입출력

untitled

Secure Programming Lecture1 : Introduction

int main(void) int a; int b; a=3; b=a+5; printf("a : %d \n", a); printf("b : %d \n", b); a b 3 a a+5 b &a(12ff60) &b(12ff54) 3 a 8 b printf(" a : %x \


FileMaker 15 ODBC 및 JDBC 설명서

JAVA PROGRAMMING 실습 09. 예외처리

FileMaker ODBC 및 JDBC 가이드

03장.스택.key

Mobile Service > IAP > Android SDK [ ] IAP SDK TOAST SDK. IAP SDK. Android Studio IDE Android SDK Version (API Level 10). Name Reference V

untitled

Java ...

자바로

교육2 ? 그림

chap10.PDF

슬라이드 1

JMF2_심빈구.PDF


fundamentalOfCommandPattern_calmglow_pattern_jstorm_1.0_f…

ch09

FileMaker ODBC and JDBC Guide

歯9장.PDF

제11장 프로세스와 쓰레드

PowerPoint 프레젠테이션

Java XPath API (한글)

FileMaker ODBC and JDBC Guide

C++-¿Ïº®Çؼ³10Àå

( )부록

Microsoft PowerPoint - RMI.ppt

MPLAB C18 C

PowerPoint 프레젠테이션

MasoJava4_Dongbin.PDF

TEST BANK & SOLUTION

mytalk

14-Servlet

Transcription:

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 02,, C++, C++ C++,,,,, C++ (pseudo code) 1 10 sum <-- 0 i <-- 1 i 1 0 sum <-- sum + i i <-- i + 1 s u m, sum i 0 1 sum i sum, i 1 i sum i 1 2 i 2 10 1 sum i 2 1 2, 3 23

Bioinformatics in J a va i 3, s u m 1 2 3 4 5 6 7 8 9 10 sum 10, i 11, 11 10 sum C Perl 0 1 #include <stdioh> 0 2 void main(void) { 0 3 int sum = 0; 0 4 int i = 1; 0 5 while(i<=10) { 0 6 sum = sum + i; 0 7 i = i + 1; 0 8 } 0 9 printf("sum : %d\n", sum); 1 0 } 0 1 $sum = 0; 0 2 $i = 1; 0 3 while($i<=10) { 0 4 $sum = $sum + $i; 0 5 $i = $i + 1; 0 6 } 0 7 print "$sum\n"; C, Perl C main( ), Perl Perl C, Perl,,,, 24

CHAPTER 02 (method), public class { } public static void main(string[] args) { } ( ) 0 1 public class FirstProgram { 0 2 public static void main(string[] args) { 0 3 int sum = 0; 0 4 int i = 1; 0 5 while(i<=10) { 0 6 sum = sum + i; 0 7 i = i + 1; 0 8 } 0 9 S y s t e m o u t p r i n t l n ( s u m ) ; 1 0 } 1 1 } FirstProgram, C main( ) main( ), main( ) 25

Bioinformatics in J a va 2 2 (class),,,,,,,,, /,,, 26

CHAPTER 02 21,,,,,,,, DNA, RNA 4 DNA FirstProgram, 22 27

28 C M Y K Bioinformatics in J a va 4 5, 3 22 class, { } public, private, protected,,,, FirstProgram main 28

CHAPTER 02 (, ) {, } ( a rg u m e n t ) (parameter) void {, } public, private, protected 3 main( ),, 4 class { } // // 2 3 (specify),, import,, 29

import javaio*; (io) Java API(http://javasuncom/j2se/142/docs/api/) javalang javaio javautil javaawt, javaxswing 30 Bioinformatics in J a va

CHAPTER 02 2 4,,, CC++ C/C++, C/C++, C C++, Perl, (data type),, (primitive type) (number type), (character type), (boolean type), byte(8 ), short(16 ), int(32 ), long(64 ), float(32 ), double(64 ) IEEE 754 31

Bioinformatics in J a va (char) (boolean) 16 char 2, boolean true false 1 int[] intlist1, intlist2; short shortmatrix[][]; Calculator[] calcarray;, int[ ] intlist1; Calculator[ ] calcarray; new new 3 intlist1 intlist2, 100 s h o r t shortmatrix, 5 calcarray intlist1 = new i n t [ 3 ]; intlist2 = new i n t [ 3 ]; shotmatrix = new s h o r t [ 10 ][ 10 ]; calcarray = new C a l c u l a t o r [ 5 ]; 32

CHAPTER 02,,, (index) [ ] 1 0 intlist[0] = -30; intlist[1] = 38; intlist[2] = 2; C/C++ C C++ String String C C++ ( ), new String str = "BIO"; String str2 = new String("JAVA");, String (concatenate) String str3 = str + str2; str3 BIOJAVA C(ANSI C) 33

Bioinformatics in J a va C/C++ goto break(multilevel break) (label), break continue t e s t : for(int i=0; i<max1; i++) { for(int j=1; j<max2; j++) i f ( m a t r i x [ i ][ j ] = = 0 ) break test; } break test; break; j i, break, C/C++ C C++, 34

CHAPTER 02, (garbage collector), (error),,,, (exception) (exception handler) try/catch/finally try { // try } catch (exception type identifier) { // catch 1 } catch (exception type identifier) { // catch 2 } catch (exception type identifier) { // catch 3 } finally { } // finally try, try catch finally, try throw 35

Bioinformatics in J a va 6 (thread),, (flow of execution), (multi-thread), (heap) (stack), (code),,, Thread Thread worker = new Thread( ); start( ) workerstart( ); Thread start( ), run( ), run( ), run( ), Thread run( ) run( ) (, overriding) Thread Runnable 2 5, 36

CHAPTER 02 Artemis (Sanger Institute, http://wwwsangeracuk/), GenBank Artemis Artemis (http://wwwsangeracuk/software/artemis/v7/) 37

Bioinformatics in J a va Artemis, Artemis ActMain 25,,,,,,, 38

CHAPTER 02, Artemis 2 6,,, (DOS) 31, Solaris1x (JDK: JAVA Development Kit) JDK (http://javasuncom) 39

Bioinformatics in J a va JDK 50, JDK 50 26 Popular Download, http:// javasuncom/j2se/150/downloadjsp JDK 50 Update 4 - including the JVM Te c h n o l o g y Download JDK 50 Update 4 JDK 50 40

CHAPTER 02 JDK JDK(JAVA Development Kit), 41

Bioinformatics in J a va JDK Change, 42

CHAPTER 02 Next JDK (JRE: Java Runtime Environment) JRE Next 43

Bioinformatics in J a va Next, JRE JRE, JDK 44

CHAPTER 02 JDK, JDK PATH CLASSPATH JDK, PATH PATH D : \ J a v a \ j d k 1 5 0 _ 0 4 \ b i n 45

Bioinformatics in J a va, JDK javac, java 46

CHAPTER 02 FirstProgramjava, main( ) java javac java, UltraEdit-32, AcroEdit Eclipse, AcroEdit Eclipse UltraEdit-32, AcroEdit Eclipse 222 {, } 2 22,, (Integrated Development Environment) Forte for Java, (Borland) JBuilder (Oracle) JDeveloper, (WebGain) Visual Cafe, 47

Bioinformatics in J a va, AcroEdit Eclipse UltraEdit-32 2 7, 48

CHAPTER 02 The Java Tutorial (Essential Java Classes): http://javasuncom/docs/books/tutorial/essential/indexhtml Sun The Java Tutorial: http://javasuncom/docs/books/tutorial/ Sun Javanet : http://wwwjavanet/ Sun Developer Network: http://javasuncom/ JGuru: http://wwwjgurucom Javalobby: http://wwwjavalobbyorg/ Java World: http://wwwjavaworldcom/ JDK: http://javasuncom/j2se/150/downloadjsp Visual Cafe: http://wwwsymanteccom/ Visual J#: http://msdnmicrosoftcom/vjsharp/ J Builder: http://wwwborlandcom/us/products/jbuilder/indexhtml Kawa: http://wwwgnuorg/software/kawa/ EditPlus: http://wwweditpluscom/ Eclipse: http://wwweclipseorg/ 1 (a) (b),, (c) (d) GUI 49

Bioinformatics in J a va (e), / / (f),,, Thread, 2 3 4 5 50