Slide 1

Slide 1 text

"OESPJEΞϓϦΛ࡞Δ ,.$OPOZMFOF ɾ֓࿦ɾηοτΞοϓɾ+BWB લ൒

Slide 2

Slide 2 text

ࣗݾ঺հ w OPOZMFOF ͷʹΕΜ w ,.$ճ w ΧʔϏΟͰ͢ w ͋ͭΊͯΧʔϏΟྑ͍Ͱ͢

Slide 3

Slide 3 text

ࣗݾ঺հ w OPOZMFOF ͷʹΕΜ w εϚϗΞϓϦͱ͔ w 5XJUUFS(JU)VCFUD w IUUQOPOZMFOFIBUFOBCMPHKQ

Slide 4

Slide 4 text

͜ͷεϥΠυ w ॳΊͷि෼Λ·ͱΊͨ΋ͷ

Slide 5

Slide 5 text

ࠓ೔΍Δ͜ͱ "OESPJE֓࿦ ؀ڥηοτΞοϓ IFMMPXPSME +BWB લ൒

Slide 6

Slide 6 text

"OESPJE
 ֓࿦

Slide 7

Slide 7 text

"OESPJE ͱ͸

Slide 8

Slide 8 text

"OESPJEͱ͸ w (PPHMF͕։ൃ͍ͯ͠Δ04 w Φʔϓϯιʔε w εϚʔτϑΥϯɺλϒϨοτ޲͚ w ࠷৽͸ /PVHBU

Slide 9

Slide 9 text

"OESPJEͱ͸ w ಛ௃ w ແྉʢಛڐྉআ͘ʣ w ͍ΖΜͳϝʔΧʔ w 9QFSJB 40/: (BMBYZ 4BNTVOH /FYVT (PPHMFͷ0&. )5$ FUD w ൺֱతࣗ༝౓͕ߴ͍ʢεϚʔτϑΥϯͷதͰ͸ʣ

Slide 10

Slide 10 text

ଞͷ04 w J04 w ೔ຊͰ͸γΣΞͰ͔͍ w BOESPJEͷӬԕͷϥΠόϧ

Slide 11

Slide 11 text

ଞͷ04 w 8JOEPXT1IPOF w /0,*"ͱ)5$͙Β͍ʜ w ͱࢥͬͨΒ࠷ۙ೔ຊͰ࡞ΒΕͯΔ w 7"*01IPOF."%04."FUD

Slide 12

Slide 12 text

"OESPJE։ൃ w جຊແྉ w Φʔϓϯιʔε w *%& "OESPJE4UVEJP w ΤϛϡϨʔλ w 1MBZ4UPSFʹެ։͢Δࡍ͸L

Slide 13

Slide 13 text

"OESPJE ͷ಺ଆ

Slide 14

Slide 14 text

"OESPJEͷ಺෦ w -JOVYΧʔωϧΛ࠾༻ w TIFMMʹೖΔͱίϚϯυ࢖͑Δ w ಺෦͸Φʔϓϯιʔε w IUUQTBOESPJEHPPHMFTPVSDFDPN

Slide 15

Slide 15 text

"OESPJEΞϓϦ͕ಈ͘·Ͱ w KBWBϑΝΠϧ͔ΒKBWBDͰDMBTTϑΝΠϧ w KBWBͷόΠτίʔυ w DMBTTϑΝΠϧ͔ΒEYͰEFYϑΝΠϧ w EBMWJLͷόΠτίʔυ .java .class .dex javac dx

Slide 16

Slide 16 text

"OESPJEΞϓϦ͕ಈ͘·Ͱ w %BMWJL7. w +7.Ͱ͸ͳ͍ w d"OESPJE w "35 "OESPJE3VOUJNF w EFYΛ༧ΊίϯύΠϧͳͲˠૣ͍ʂྑ͍ʂ w "OESPJEd

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

"OESPJE ͷ։ൃ

Slide 19

Slide 19 text

։ൃ؀ڥ w +BWB w ਖ਼֬ʹ͸"OESPJE+BWB w "OESPJE/͔Β͸0QFO+%,KBWB

Slide 20

Slide 20 text

։ൃ؀ڥ w "OESPJE4UVEJP w *OUFMMJ+ϕʔε w 8JOEPXTNBD-JOVY w ແྉ w FDMJQTF͸αϙʔτऴྃ

Slide 21

Slide 21 text

04όʔδϣϯ w ݹ͍όʔδϣϯ͕ݱ໾ w ࠷৽ͷ"1*͕࢖͑ͳ͍౳ w Ҏ্ఔ౓͕Φεεϝ ˞ӈͷද͸൒೥લ

Slide 22

Slide 22 text

υΩϡϝϯτ w IUUQTEFWFMPQFSBOESPJEDPNJOEFYIUNM

Slide 23

Slide 23 text

؀ڥ
 ηοτΞοϓ

Slide 24

Slide 24 text

ηοτΞοϓ 1$ηοτΞοϓ ิ଍ ୺຤ଆηοτΞοϓ )FMMP8PSME

Slide 25

Slide 25 text

1$ηοτΞοϓ w "OESPJE4UVEJPೖΕΔ͚ͩ w ΑΓ0QFO+%,ಉࠝ w "OESPJEͷ4%,ಉࠝ w IUUQTEFWFMPQFSBOESPJEDPNTUVEJP JOEFYIUNM

Slide 26

Slide 26 text

ิ଍

Slide 27

Slide 27 text

ηοτΞοϓ ਪ঑ w (FOZNPUJPO w ૉૣ͍ΤϛϡϨʔλ w ඇ঎༻Ͱ͸ແྉ w 7JSUVBM#PY͕ඞཁ w IUUQTXXXHFOZNPUJPODPNGVO[POF

Slide 28

Slide 28 text

ηοτΞοϓ ਪ঑ w "%#Λ1"5)ʹ௥Ճ w "OESPJEΛ1$͔Βૢ࡞͢Δπʔϧ w *OTUBMMVOJOTUBMMFUD w ίϯιʔϧ͔ΒBEC͕࢖͑ΔΑ͏ʹ

Slide 29

Slide 29 text

୺຤ଆ
 ηοτΞοϓ

Slide 30

Slide 30 text

64#σόοά w ։ൃऀ޲͚ͷϞʔυ w BECίϚϯυΛୟ͚ΔΑ͏ʹͳΔ w 1$͔Β"OESPJEΛૢ࡞͢Δ w ΤϛϡϨʔλͰ͸0/ʹͳ͍ͬͯΔ͸ͣ

Slide 31

Slide 31 text

64#σόοά༗ޮ ઃఆΛ։͘

Slide 32

Slide 32 text

64#σόοά༗ޮ ୺຤৘ใΛ։͘

Slide 33

Slide 33 text

64#σόοά༗ޮ Ϗϧυ൪߸Λ࿈ଧ

Slide 34

Slide 34 text

64#σόοά༗ޮ Ϗϧυ൪߸Λ࿈ଧ

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

64#σόοά༗ޮ b։ൃऀ޲͚Φϓγϣϯ`ొ৔

Slide 37

Slide 37 text

64#σόοά༗ޮ 64#σόοάΛ0/

Slide 38

Slide 38 text

1$ʹ઀ଓ w ୺຤ʹ"%#ڐՄը໘͕ग़ͨΒڐՄ w υϥΠόͷ֤ʑ͕ඞཁ͔΋

Slide 39

Slide 39 text

)FMMP8PSME

Slide 40

Slide 40 text

)FMMP8PSMEͷྲྀΕ w ϓϩδΣΫτΛ࡞੒͢Δ w ίϯύΠϧ࣮ͯ͠ߦ w )FMMP8PSME

Slide 41

Slide 41 text

ϓϩδΣΫτͷ࡞੒ w l4UBSUBOFX"OESPJE4UVEJPQSPKFDUz

Slide 42

Slide 42 text

ϓϩδΣΫτͷ࡞੒ w )FMMP8PSMEΞϓϦ w $PNQBOZ%PNBJO͸ద౰ʹ ྫKQLND

Slide 43

Slide 43 text

ϓϩδΣΫτͷ࡞੒ w 1IPOFBOE5BCMFU"OESPJEҎ্

Slide 44

Slide 44 text

ϓϩδΣΫτͷ࡞੒ w &NQUZ"DUJWJUZΛબ୒

Slide 45

Slide 45 text

ϓϩδΣΫτͷ࡞੒ w ͦͷ··pOJTI͠͹Β͘଴ͭ

Slide 46

Slide 46 text

ϓϩδΣΫτͷ࡞੒

Slide 47

Slide 47 text

"OESPJE4UVEJPઃఆ w *OTUBOU3VOΛEJTBCMF w ϗοτεϫοϓʹΑΓߴ଎ʹมߋΛద༻͢Δػೳ w ·ͩ͸·Δ͜ͱ͕ଟ͍ͷͰEJTBCMF

Slide 48

Slide 48 text

"OESPJE4UVEJPઃఆ w ઃఆ#VJME*OTUBOU3VOΛEJTBCMF

Slide 49

Slide 49 text

)FMMP8PSME w 3VObBQQ`ΛΫϦοΫ

Slide 50

Slide 50 text

)FMMP8PSME w ΠϯετʔϧઌΛબ୒ ઀ଓதͷσόΠε

Slide 51

Slide 51 text

)FMMP8PSME w ΠϯετʔϧઌΛબ୒ ΤϛϡϨʔλ

Slide 52

Slide 52 text

)FMMP8PSME w ิ଍ w (FOZNPUJPOͷਓ͸ࣗ෼Ͱىಈͤ͞Δ w ϓϥάΠϯ΋͋Γ·͢ w *OUFM)"9.ͷΠϯετʔϧΛٻΊΒΕΔ͜ͱ΋ w ը໘ʹैͬͯΠϯετʔϧ

Slide 53

Slide 53 text

)FMMP8PSME

Slide 54

Slide 54 text

ηοτΞοϓ׬ྃ w ͓ർΕ༷Ͱͨ͠

Slide 55

Slide 55 text

+BWB

Slide 56

Slide 56 text

+BWB +BWBʹ͍ͭͯ Ϋϥεͱ͸ จ๏ ͦͷଞ͍Ζ͍Ζ

Slide 57

Slide 57 text

+BWB֓ཁ

Slide 58

Slide 58 text

+BWB֓ཁ w "OESPJE+BWBͰ͸ͳ͘+BWBͷ֓ཁ

Slide 59

Slide 59 text

+BWBͱ͸ w ΦϒδΣΫτࢦ޲ϓϩάϥϛϯάݴޠ w 4VO͕։ൃɺݱࡏ͸0SBDMF w ࠷৽όʔδϣϯ͸+BWB4& w ϥϜμࣜͷαϙʔτ౳

Slide 60

Slide 60 text

+BWBͱ͸ w +7. +BWB7JSUVBM.BDIJOF w +BWBͷ࣮ߦ؀ڥ w KBWBDͰίϯύΠϧ͞ΕͨόΠτίʔυΛ࣮ߦ w 04ͷґଘੑΛऔΓআ͘ w l8SJUFPODF SVOBOZXIFSFz

Slide 61

Slide 61 text

+BWBͱ͸ w KBWBϑΝΠϧΛKBWBDͰίϯύΠϧ w όΠτίʔυ DMBTTϑΝΠϧ ͷੜ੒

Slide 62

Slide 62 text

+BWBͱ͸ w όΠτίʔυΛ֤؀ڥͷ+7.Ͱ࣮ߦ ˞"OESPJE͸όΠτίʔυΛ௚઀࣮ߦ͠ͳ͍

Slide 63

Slide 63 text

ิ଍ w +BWBͱ+BWB4DSJQU͸શ͘ҧ͏΋ͷ w +BWB͕ྲྀߦ͔ͬͯͨΒࣅ໊ͨલʹͳ͚ͬͨͩ ʺ

Slide 64

Slide 64 text

ิ଍ w "OESPJE͸͍ΘΏΔʮ+BWB΋Ͳ͖ʯ w ίʔυΛॻ͘෼ʹ͸+BWBͱΈͳͯ͠ྑ͍ w ৄࡉIUUQRVFTFSBIBUFOBCMPHKQFOUSZ

Slide 65

Slide 65 text


 )FMMP8PSME

Slide 66

Slide 66 text

8JOEPXTͰͷ+BWB w λʔϛφϧ্Ͱ+BWB+BWBDΛಈ͔͢৔߹ w +%,ΛΠϯετʔϧ͢Δ w IUUQXXXKBWBESJWFKQJOTUBMM w "OESPJE4UVEJPಉࠝͷ+%,Λ࢖͏ • C:\Program Files\Android\Android Studio\jre\bin\java.exe

Slide 67

Slide 67 text

w ͱΓ͋͑ͣ)FMMP8PSME • Hello.java )FMMP8PSME public class Hello { public static void main(String[] args) { System.out.println("Hello, world!"); } }

Slide 68

Slide 68 text

)FMMP8PSME $ javac Hello.java $ ls > Hello.class Hello.java $ java Hello > Hello, world! ˡίϯύΠϧ

Slide 69

Slide 69 text

)FMMP8PSME $ javac Hello.java $ ls > Hello.class He… $ java Hello > Hello, world! ˡόΠτίʔυ

Slide 70

Slide 70 text

)FMMP8PSME $ javac Hello.java $ ls > Hello.class Hello.java $ java Hello > Hello, world! ˡ࣮ߦ

Slide 71

Slide 71 text

ͬ͘͟Γઆ໌

Slide 72

Slide 72 text

• Hello.java • Hello Ϋϥεͷએݴ )FMMP8PSME public class Hello { public static void main(String[] args) { System.out.println("Hello, world!"); } }

Slide 73

Slide 73 text

• Hello.java • main ϝιου(≒ؔ਺)ͷએݴ )FMMP8PSME public class Hello { public static void main(String[] args) { System.out.println("Hello, world!"); } }

Slide 74

Slide 74 text

• Hello.java • System.out.println ϝιουΛݺͼग़͠ )FMMP8PSME public class Hello { public static void main(String[] args) { System.out.println("Hello, world!"); } }

Slide 75

Slide 75 text

public class Hello { public static void main(String[] args) { String hello = "Hello, world!”; System.out.println(hello); } } • Hello.java • hello ม਺ Λ࡞੒ )FMMP8PSME

Slide 76

Slide 76 text

Ϋϥε

Slide 77

Slide 77 text

˞࣮༻ੑ
 ͔Βͷઆ໌

Slide 78

Slide 78 text

Ϋϥεͱ͸ʁ w 㲈ܕ KBWBͷ৔߹ w ॲཧ΍ม਺Λͻͱ·ͱΊʹͨ͠΋ͷ w େ఍ɺػೳຖʹΫϥεΛ࡞Δ

Slide 79

Slide 79 text

Ϋϥεͷ͍͍ͱ͜Ζ w ୔ࢁม਺࣋ͪӡͿͷͭΒ͍ͷͰΫϥεͰҰؾʹ w ϝιου୔ࢁॻ͘ͷͭΒ͍ͷͰΫϥεʹ·ͱΊΔ w ΫϥεʹೖΕͨม਺ͷॲཧ͸ΫϥεͷதͰ w 4USJOH΍JOU͚ͩͩͱม਺͕Կҙຯͯ͠Δ͔෼͔Β ͳ͍ͷͰΫϥεʹ

Slide 80

Slide 80 text

ྫ w ͱΓ͋͑ͣ w 4USJOH จࣈྻ w JOU ਺ࣈ w ͚ͩΛ࢖͏ঢ়گ

Slide 81

Slide 81 text

ྫ w ອըΛ؅ཧ͍ͨ͠ w ອըͷऔಘɾએ఻༻จॻ࡞੒ɾFUDʜ

Slide 82

Slide 82 text

public class Hello { … public static void printManga( String title, String author, String company, String bland, String volumeName, int price, String description, String obi) { System.out.println(author + "ͷ" + title + volumeName + "! " + company + bland + “ࣾӡΛ͔͚ͨ௒େ࡞!: \n આ໌͸ͪ͜Β” + description + obi + “஋ஈ͸” + price); } } એ఻༻จॻΛ࡞੒͢ΔϝιουΛ࡞Δ

Slide 83

Slide 83 text

public class Hello { … public static void printManga( String title, String author, String company, String bland, String volumeName, int price, String description, String obi) { System.out.println(author + "ͷ" + title + volumeName + "! " + company + bland + “ࣾӡΛ͔͚ͨ௒େ࡞!: \n આ໌͸ͪ͜Β” + description + obi + “஋ஈ͸” + price); } } એ఻༻จॻΛ࡞੒͢ΔϝιουΛ࡞Δ ˡඞཁͳม਺ୡ

Slide 84

Slide 84 text

public class Hello { … public static String getTitleFromServer(Server server) { server.getTitle().trim() } public static String getAuthorFromServer(Server server) { server.getAuthor().trim() } publ... } ອըσʔλΛαʔόʔ͔Β࣋ͬͯདྷΔ ˢ4USJOHҰͭͣͭஸೡʹฦ͢ϝιουΛ࡞Δ

Slide 85

Slide 85 text

public class Hello { public static void main(String[] args) { // server ͸ͳ͍͚Ͳઆ໌ͷͨΊ String title = getTitleFromServer(server); String author = getAuthorFromServer(server); Str… printManga(title, author, compa…); } ... } αʔόʔ͔Β͖࣋ͬͯͨ΋ͷΛએ఻༻จॻʹ͢Δ ˢม਺ΛҰͭҰͭऔಘ

Slide 86

Slide 86 text

public class Hello { public static void main(String[] args) { // server ͸ͳ͍͚Ͳઆ໌ͷͨΊ String title = getTitleFromServer(server); String author = getAuthorFromServer(server); Str… printManga(title, author, compa…); } ... } αʔόʔ͔Β͖࣋ͬͯͨ΋ͷΛએ఻༻จॻʹ͢Δ ˢม਺ΛҰͭҰͭϝιουʹೖΕ͍ͯ͘

Slide 87

Slide 87 text

public class Hello { public static void main(String[] args) { String title = getTitleFromServer(server); String author = getAuthorFromServer(server); Str… printManga(title, author, compa…); } public static void printManga( String title, String author, String company, String bland, String volumeName, int price, String description, String obi) { System.out.println(author + "ͷ" + title + volumeName + "! " + company + bland + “ࣾӡ Λ͔͚ͨ௒େ࡞!: \n આ໌͸ͪ͜Β” + description + obi + “஋ஈ͸” + price); } public static String getTitleFromServer(Server server) { server.getTitle() } public static String getAuthorFromServer(Server server) { server.getAuthor() } pub… ... } ·ͱΊΔ

Slide 88

Slide 88 text

ཁ݅௥Ճ w ʮҧ͏એ఻จষ΋ग़ͯ͠΄͍͠ΜͩΑͶʯ

Slide 89

Slide 89 text

public class Hello { … public static void printMangaShort( String title, //String author, //String company, //String bland, //String volumeName, int price, //String description, //String obi ) { System.out.println(titile + " Ձ֨: " + price); } } ୹͍એ఻จষͷ௥Ճ ˡཁΒͳ͍΋ͷ͸
 ίϝϯτΞ΢τ

Slide 90

Slide 90 text

public class Hello { public static void main(String[] args) { String title = getTitleFromServer(server); String author = getAuthorFromServer(server); Str… printManga(title, author, compa…); printMangaShort(title, price); } public static void printManga( String title, String author, String company, String bland, String volumeName, int price, String description, String obi) { System.out.println(author + "ͷ" + title + volumeName + "! " + company + bland + “ࣾӡΛ͔͚ͨ௒େ࡞!: \n આ໌͸ͪ͜Β” + description + obi + “஋ஈ͸” + price); } public static String getTitleFromServer(Server server) { server.getTitle() } public static String getAuthorFromServer(Server server) { server.getAuthor() } pub… public static void printMangaShort( String title, //String author, //String company, //String bland, //String volumeName, int price, //String description, //String obi ) { System.out.println(titile + " Ձ֨: " + price); } } ·ͱΊΔ

Slide 91

Slide 91 text

ཁ݅௥Ճ w ʮ͋ɺ͋ͱॳΊ͔Β͙ͭΒ͍ອըஔ͍ͯͯ ΄͍͠ʯ

Slide 92

Slide 92 text

public class Hello { public static void main(String[] args) { String manga1Title = "ΏΔΏΓ"; String manga1Author = "ͳ΋Γ"; Str... String manga2Title = "ΏΏࣜ"; String manga2Author = "ࡾ্খຢ"; Str... printManga(manga1Title, manga1Author, ... ); printMangaShort(manga1Title, manga1Price); printManga(manga2Title, manga2Author, ... ); ॳظອը௥Ճ ˡ֤ม਺௥Ճ

Slide 93

Slide 93 text

public class Hello { public static void main(String[] args) { String manga1Title = "ΏΔΏΓ"; String manga1Author = "ͳ΋Γ"; Str... String manga2Title = "ΏΏࣜ"; String manga2Author = "ࡾ্খຢ"; Str... printManga(manga1Title, manga1Author, ... ); printMangaShort(manga1Title, manga1Price); printManga(manga2Title, manga2Author, ... ); ॳظອը௥Ճ ˡQSJOU

Slide 94

Slide 94 text

̷̸̴ʙ͇̓̈́ w զʑ͸Կߦ͜ͷϑΝΠϧΛॻ͍͍ͯ͘ͷ͔ w ॳΊͷອը͕ͭ૿͑ͨΒߦ૿͑Δ w ϝιουͷҾ਺Λຖճॻ͍͍ͯ͘ͷ͔ w ອըͷཁૉ૿͑ͨΒͲ͏͢Δͷ͔ w ग़൛೥ച্ײ૝FUD

Slide 95

Slide 95 text

͜͜ͰΫϥεͷొ৔ w ࠓճ͸Manga ΫϥεΛఆٛ͢Δ

Slide 96

Slide 96 text

* Manga.java public class Manga { private String title; private String author; private String company; private String bland; private String volumeName; private int price; private String description; private String obi; public Manga(String title, String author, String company, String bland, String volumeName, int price, String description, String obi) { this.title = title; this.author = author; this.company = company; this.bland = bland; this.volumeName = volumeName; this.price = price; this.description = description; this.obi = obi; } } ˡ֤ม਺ʢϝϯόม਺ʣ

Slide 97

Slide 97 text

* Manga.java public class Manga { private String title; private String author; private String company; private String bland; private String volumeName; private int price; private String description; private String obi; public Manga(String title, String author, String company, String bland, String volumeName, int price, String description, String obi) { this.title = title; this.author = author; this.company = company; this.bland = bland; this.volumeName = volumeName; this.price = price; this.description = description; this.obi = obi; } } ˣੜ੒ɾॳظԽʢίϯετϥΫλʣ

Slide 98

Slide 98 text

* Manga.java public class Manga { private String title; private String author; private String company; private String bland; private String volumeName; private int price; private String description; private String obi; public Manga(String title, String author, String company, String bland, String volumeName, int price, String description, String obi) { this.title = title; this.author = author; this.company = company; this.bland = bland; this.volumeName = volumeName; this.price = price; this.description = description; this.obi = obi; } } ˡϝϯόม਺
 ʹ୅ೖ

Slide 99

Slide 99 text

public class Manga { … public void print() { System.out.println(author + "ͷ" + title + volumeName + "! " + company + bland + “ࣾӡΛ͔͚ͨ௒େ࡞!: \n આ໌͸ͪ͜Β” + description + obi + “஋ஈ͸” + price); } public void printShort() { System.out.println(titile + " Ձ֨: " + price); } } ˣΫϥε಺ͷม਺ΛಡΜͰprint

Slide 100

Slide 100 text

w ͜ΕΛHelloΫϥε಺Ͱ࢖͏ w MangaΦϒδΣΫτΛ࡞੒͠ɺϝιουΛݺͿ w Ϋϥεఆٛʢઃܭਤʣ w ΦϒδΣΫτ࣮ࡍͷσʔλ .BOHBΫϥε׬੒

Slide 101

Slide 101 text

public class Hello { public static void main(String[] args) { Manga yuruyuri = new Manga("ΏΔΏΓ", "ͳ΋Γ", ...); Manga yuyushiki = new Manga("ΏΏࣜ", "ࡾ্খຢ", ...); yuruyuri.print(); yuruyuri.printShort(); yuyushiki.print(); yuyushiki.printShort(); // server ͳΜͯ΋ͷ͸ͳ͍͚Ͳઆ໌ͷͨΊ Manga manga = server.getManga(); manga.print(); manga.printShort(); } } ˢMangaΦϒδΣΫτΛ ࡞੒ɾॳظԽ

Slide 102

Slide 102 text

public class Hello { public static void main(String[] args) { Manga yuruyuri = new Manga("ΏΔΏΓ", "ͳ΋Γ", ...); Manga yuyushiki = new Manga("ΏΏࣜ", "ࡾ্খຢ", ...); yuruyuri.print(); yuruyuri.printShort(); yuyushiki.print(); yuyushiki.printShort(); // server ͳΜͯ΋ͷ͸ͳ͍͚Ͳઆ໌ͷͨΊ Manga manga = server.getManga(); manga.print(); manga.printShort(); } } ˢMangaΦϒδΣΫτ

Slide 103

Slide 103 text

public class Hello { public static void main(String[] args) { Manga yuruyuri = new Manga("ΏΔΏΓ", "ͳ΋Γ", ...); Manga yuyushiki = new Manga("ΏΏࣜ", "ࡾ্খຢ", ...); yuruyuri.print(); yuruyuri.printShort(); yuyushiki.print(); yuyushiki.printShort(); // server ͳΜͯ΋ͷ͸ͳ͍͚Ͳઆ໌ͷͨΊ Manga manga = server.getManga(); manga.print(); manga.printShort(); } } ˡMangaΫϥεʹఆٛ͞Εͨ ϝιουΛݺͿ

Slide 104

Slide 104 text

public class Hello { public static void main(String[] args) { Manga yuruyuri = new Manga("ΏΔΏΓ", "ͳ΋Γ", ...); Manga yuyushiki = new Manga("ΏΏࣜ", "ࡾ্খຢ", ...); yuruyuri.print(); yuruyuri.printShort(); yuyushiki.print(); yuyushiki.printShort(); // server ͳΜͯ΋ͷ͸ͳ͍͚Ͳઆ໌ͷͨΊ Manga manga = server.getManga(); manga.print(); manga.printShort(); } } ˡMangaΫϥεʹఆٛ͞Εͨ ϝιουΛݺͿ

Slide 105

Slide 105 text

public class Hello { public static void main(String[] args) { Manga yuruyuri = new Manga("ΏΔΏΓ", "ͳ΋Γ", ...); Manga yuyushiki = new Manga("ΏΏࣜ", "ࡾ্খຢ", ...); yuruyuri.print(); yuruyuri.printShort(); yuyushiki.print(); yuyushiki.printShort(); // server ͳΜͯ΋ͷ͸ͳ͍͚Ͳઆ໌ͷͨΊ Manga manga = server.getManga(); manga.print(); manga.printShort(); } } ˢMangaΦϒδΣΫτ͝ͱ
 αʔόʔ͔Βऔಘ ˞serverͰ͸MangaΦϒδΣΫτΛ࡞ͬͯฦ͢ॲཧΛॻ͍͍ͯΔͱ͢Δ

Slide 106

Slide 106 text

ศར w HelloΫϥεͰ͸MangaΫϥεͷϝιου Λݺͼग़͚ͩ͢ w Mangaͷཁૉ͕૿͑ͯ΋Manga಺Λ
 มߋ͢Ε͹ྑ͍ w Mangaͷ಺෦ͷม਺͸Hello͸஌Βͳ͍

Slide 107

Slide 107 text

ศར w Ξχϝ#%Λ؅ཧ͢Δ͜ͱʹͳͬͯ΋ʜ w AnimeBDΫϥεΛ࡞Δ w HelloΫϥε಺ͰAnimeBDΦϒδΣΫτΛ࡞੒ w ΦϒδΣΫτͷϝιουΛୟ͘

Slide 108

Slide 108 text

KBWBͰ͸ w Ұ෦Λআ͍ͯશͯΦϒδΣΫτͰߏ੒ w int / char / boolean ͳͲϓϦϛςΟϒܕͭҎ֎ w จࣈྻ String ΋ΦϒδΣΫτ
 
 
 ˠΦϒδΣΫτࢦ޲ 001 ݴޠ String k = "KMC"; k.length(); k.replace("K", "O");

Slide 109

Slide 109 text

ͱΓ͋͑ͣ w ॻ͍ͯͨΒͳΜͱͳ͘෼͔ͬͯ͘Δ w ͜͏͍͏ͷ͕ඞཁͳΜͩͳ͋ఔ౓Ͱ0,

Slide 110

Slide 110 text

จ๏

Slide 111

Slide 111 text

͔͜͜Β͸HJTU IUUQTHJTUHJUIVCDPNOPOZMFOF FBGGFGBGDFFBC