1.1㻌 䝟䝑䜿䞊䝆䛸䛿 㻝㻚㻝 ࣃࢵࢣ࣮ࢪࡣ ࣃࢵࢣ࣮ࢪࡣࠊ」ᩘࡢࢡࣛࢫࢆࢢ࣮ࣝࣉࡋࡓࡶࡢ࡛ࡍࠋࣃࢵࢣ࣮ࢪࢆ⏝ࡍࡿ࡞࣓ࣜࢵࢺ ࡣḟࡢ㏻ࡾ࡛ࡍࠋ ͑ ࢡࣛࢫࢆᙺࡈࡲࡵࠊࢡࣛࢫࡢពࢆࢃࡾࡸࡍࡃࡍࡿ ͑ ࣃࢵࢣ࣮ࢪࡈࢡࣛࢫྡࢆ⟶⌮࡛ࡁࡿࡢ࡛ࠊࢡࣛࢫྡࡀࡘࡅࡸࡍࡃ࡞ࡿ ͑ ࣃࢵࢣ࣮ࢪ༢ࢡࢭࢫไᚚ࡛ࡁࡿ ௨ୗࡢࢧࣥࣉࣝࣉࣟࢢ࣒࡛ࣛࠊࣃࢵࢣ࣮ࢪࡢᐃ⩏᪉ἲ࠸᪉ࢆ☜ㄆࡋࡲࡋࡻ࠺ࠋ 䖃 ࢧࣥࣉࣝࣉࣟࢢ࣒ࣛࡢᴫせ WHVW ࣃࢵࢣ࣮ࢪࡢ 8VH7HVW3DFNDJH ࢡࣛࢫ WHVWVDPSOH ࣃࢵࢣ࣮ࢪࡢ 7HVW3DFNDJH ࢡࣛࢫࢆ ࠸ࠊ࣓ࢵࢭ࣮ࢪࢆ⾲♧ࡋࡲࡍࠋ 䖃 ࢥࣥࣃ࣭ࣝᐇ⾜⤖ᯝ !MDYDFG7HVW3DFNDJHMDYD !MDYDFG8VH7HVW3DFNDJHMDYD !MDYDWHVW8VH7HVW3DFNDJH 7KLVLVWHVWPHVVDJH 3 ➨ 1 ❶㻌 Java 䛾䝷䜲䝤䝷䝸 䖃 ࢯ࣮ࢫࣉࣟࢢ࣒ࣛ 7HVW3DFNDJHMDYD 㸸 WHVWVDPSOHࣃࢵࢣ࣮ࢪ 㸸 SDFNDJHWHVWVDPSOH 㸸 㸸 7HVW3DFNDJHࢡࣛࢫࡢᐃ⩏ 㸸 SXEOLFFODVV7HVW3DFNDJH^ 㸸 SXEOLFVWDWLFYRLGSULQW0HVVDJH ^ 㸸 6\VWHPRXWSULQWOQ 7KLVLVWHVWPHVVDJH 㸸 ` 㸸 ` 8VH7HVW3DFNDJHMDYD 㸸 WHVWࣃࢵࢣ࣮ࢪ 㸸 SDFNDJHWHVW 㸸 㸸 7HVW3DFNDJHࢡࣛࢫࢆ࣏࣮ࣥࢺ 㸸 LPSRUWWHVWVDPSOH7HVW3DFNDJH 㸸 㸸 8VH7HVW3DFNDJHࢡࣛࢫࡢᐃ⩏ 㸸 SXEOLFFODVV8VH7HVW3DFNDJH^ 㸸 SXEOLFVWDWLFYRLGPDLQ 6WULQJ>@DUJV ^ 㸸 7HVW3DFNDJHࢡࣛࢫࡢ࣓ࢯࢵࢻࡧฟࡋ 㸸 7HVW3DFNDJHSULQW0HVVDJH 㸸 ` 㸸 ` 4 1.1㻌 䝟䝑䜿䞊䝆䛸䛿 㻝㻚㻝㻚㻝 ࣃࢵࢣ࣮ࢪࡢᐃ⩏㻌 ࢡࣛࢫࢆࣃࢵࢣ࣮ࢪࡍࡿࡣࠊSDFNDJH ᩥࢆ⏝ࡋࡲࡍࠋ ࠙ࣃࢵࢣ࣮ࢪࡢᣦᐃࠚ SDFNDJHࣃࢵࢣ࣮ࢪྡ SDFNDJH ᩥࡢグ㏙ࡣࠊḟࡢ࣮ࣝࣝࡀ࠶ࡾࡲࡍࠋ ͑ SDFNDJHᩥࡣࢯ࣮ࢫࣇࣝࡢඛ㢌グ㏙ࡍࡿ ͑ ࡘࡢࢯ࣮ࢫࣇࣝSDFNDJHᩥࡣࡘࡋᣦᐃ࡛ࡁ࡞࠸ 7HVW3DFNDJHMDYD㸦ᢤ⢋㸧 WHVWVDPSOHࣃࢵࢣ࣮ࢪ SDFNDJHWHVWVDPSOH 7HVW3DFNDJHࢡࣛࢫࡢᐃ⩏ SXEOLFFODVV7HVW3DFNDJH^ 䝁䞊䝕䜱䞁䜾つ⣙ ࣃࢵࢣ࣮ࢪྡ ࣭ࣃࢵࢣ࣮ࢪྡࡣࡍ࡚ᑠᩥᏐࡍࡿ ࣭ࣥࢱ࣮ࢿࢵࢺࢻ࣓ࣥࢆ㏫ࡋࡓࡶࡢࢆࣃࢵࢣ࣮ࢪྡࡢඛ㢌ࡘࡅࡿ 㸧ࣥࢱ࣮ࢿࢵࢺࢻ࣓ࣥࡀࠕQHFFRPࠖࡢሙྜ SDFNDJHFRPQHF[[[ 5 ➨ 1 ❶㻌 Java 䛾䝷䜲䝤䝷䝸 㻝㻚㻝㻚㻞 ࣃࢵࢣ࣮ࢪࡋࡓࢡࣛࢫࡢࢥࣥࣃࣝ㻌 ࣃࢵࢣ࣮ࢪࡋࡓࢡࣛࢫࡢࢡࣛࢫࣇࣝࡣࠊࣃࢵࢣ࣮ࢪྡᑐᛂࡍࡿࣇ࢛ࣝࢲ㓄⨨ࡋࡲࡍࠋ ࢪ࣮ࢣࢵࣃڦࡋࡓࢡࣛࢫࡢ㓄⨨ࣇ࢛ࣝࢲ 䝟䝑䜿䞊䝆 䝹䞊䝖 SDFNDJHWHVWVDPSOH FODVV7HVW3DFNDJH^ 㸸 ` test TestPackage.java 䝁䞁䝟䜲䝹 㓄⨨ sample TestPackage.class TestPackage.class MDYDF ࢥ࣐ࣥࢻG ࢜ࣉࢩࣙࣥࢆࡘࡅ࡚ࢥࣥࣃࣝࡍࡿࠊḟࡢసᴗࢆ⮬ື࡛ࡁࡲࡍࠋ ࣃࢵࢣ࣮ࢪࡢ࣮ࣝࢺࣇ࢛ࣝࢲࣃࢵࢣ࣮ࢪྡᑐᛂࡋࡓࣇ࢛ࣝࢲࢆసᡂࡍࡿ ࣃࢵࢣ࣮ࢪྡᑐᛂࡋࡓࣇ࢛ࣝࢲࡀᏑᅾࡍࡿሙྜࡣఱࡶ⾜ࢃ࡞࠸ ࢡࣛࢫࣇࣝࢆ⏕ᡂࡋࠊࣃࢵࢣ࣮ࢪྡᑐᛂࡋࡓࣇ࢛ࣝࢲ㓄⨨ࡍࡿ G ࢜ࣉࢩࣙࣥࢆᣦᐃࡋࡓሙྜࡢ MDYDF ࢥ࣐ࣥࢻࡢ᭩ᘧࡣḟࡢ㏻ࡾ࡛ࡍࠋ ࠙G ࢜ࣉࢩࣙࣥࠚ !MDYDFGࣃࢵࢣ࣮ࢪࡢ࣮ࣝࢺࣇ࢛ࣝࢲࢯ࣮ࢫࣇࣝྡ 6 1.1㻌 䝟䝑䜿䞊䝆䛸䛿 㻝㻚㻝㻚㻟 ࣃࢵࢣ࣮ࢪࡋࡓࢡࣛࢫࡢ࣏࣮ࣥࢺ㻌 ࣃࢵࢣ࣮ࢪࡋࡓࢡࣛࢫࢆูࡢࣃࢵࢣ࣮ࢪࡢࢡࣛࢫࡀ⏝ࡍࡿሙྜࡣࠊ ࢡࣛࢫྡࡢ๓ࣃࢵࢣ ࣮ࢪྡࢆࡅࡲࡍࠋࣃࢵࢣ࣮ࢪྡࢡࣛࢫྡࡢ㛫ࡣ༊ษࡾࡋ࡚ࠕࠖࢆධࢀࡲࡍࠋ࠼ࡤࠊ WHVWVDPSOH ࣃࢵࢣ࣮ࢪࡢ 7HVW3DFNDJH ࢡࣛࢫࡣࠕWHVWVDPSOH7HVW3DFNDJHࠖᣦᐃࡋࡲࡍࠋ ࣃࢵࢣ࣮ࢪྡࢆࡅࡓࢡࣛࢫྡࢆಟ㣭ࢡࣛࢫྡ࠸࠸ࡲࡍࠋ ಟ㣭ࢡࣛࢫྡࢆ⏝࠸ࡿࠊࣉࣟࢢ࣒ࣛࡀ㛗ࡃ࡞ࡾࠊㄞࡳࡃࡃ࡞ࡾࡲࡍࠋࡇࡢࡼ࠺࡞ሙྜ ࡣࠊLPSRUW ᩥࢆ⏝ࡋࡲࡍࠋLPSRUW ᩥࡣࠊࣃࢵࢣ࣮ࢪྡ࡞ࡋ࡛ࡢࣃࢵࢣ࣮ࢪࡢࢡࣛࢫࢆ⏝ ࡛ࡁࡿࡼ࠺ࡋࡲࡍࠋ ࠙ࣃࢵࢣ࣮ࢪࡋࡓࢡࣛࢫࡢ࣏࣮ࣥࢺࠚ LPSRUWࣃࢵࢣ࣮ࢪྡࢡࣛࢫྡ WHVWVDPSOHࣃࢵࢣ࣮ࢪࡢ$ࢡࣛࢫࢆ࣏࣮ࣥࢺ LPSRUWWHVWVDPSOH$ FODVV8VH,PSRUW^ SXEOLFYRLGIXQF ^ $D QHZ$ ࣏࣮ࣥࢺࡋࡓࢡࣛࢫ WHVWVDPSOH%E QHZWHVWVDPSOH% ࣏࣮ࣥࢺࡋ࡚࠸࡞࠸ࢡࣛࢫ WHVWVDPSOH&F QHZWHVWVDPSOH& ࣏࣮ࣥࢺࡋ࡚࠸࡞࠸ࢡࣛࢫ ࣃࢵࢣ࣮ࢪྵࡲࢀࡿࡍ࡚ࡢࢡࣛࢫࢆ࣏࣮ࣥࢺࡍࡿሙྜࡣࠊLPSRUW ᩥࡢࢡࣛࢫྡࡢ㒊ศ ࠕ ࠖࢆᣦᐃࡋࡲࡍࠋ ࠙ࣃࢵࢣ࣮ࢪྵࡲࢀࡿࡍ࡚ࡢࢡࣛࢫࢆ࣏࣮ࣥࢺࠚ LPSRUWࣃࢵࢣ࣮ࢪྡ WHVWVDPSOHࣃࢵࢣ࣮ࢪࡢࢡࣛࢫࢆ࣏࣮ࣥࢺ LPSRUWWHVWVDPSOH FODVV8VH,PSRUW^ SXEOLFYRLGIXQF ^ $D QHZ$ %E QHZ% &F QHZ& 7 ➨ 1 ❶㻌 Java 䛾䝷䜲䝤䝷䝸 㻝㻚㻞 ᶆ‽ࣛࣈࣛࣜ ᶆ‽ࣛࣈࣛࣜࡣࠊ-DYD ࡛࠶ࡽࡌࡵᐃ⩏ࡋ࡚࠸ࡿࢡࣛࢫࣛࣈ࡛ࣛࣜࡍࠋᶆ‽ࣛࣈࣛ ࣜࢆ⏝ࡍࡿࠊࢹࢫࣉࣞࡢฟຊࡸᩥᏐิ᧯సࠊ'% 㐃ᦠ࡞ࡢฎ⌮ࢆ⡆༢グ㏙࡛ࡁࡲ ࡍࠋ 㻝㻚㻞㻚㻝 ௦⾲ⓗ࡞ࣃࢵࢣ࣮ࢪ㻌 -DYD ࡢᶆ‽ࣛࣈࣛࣜࡣࠊྠࡌᙺࡸ┠ⓗࢆᣢࡗࡓࢡࣛࢫࡸࣥࢱࣇ࢙࣮ࢫࢆ ࡘࡲࡵ ࡚ࣃࢵࢣ࣮ࢪࡋ࡚࠸ࡲࡍࠋࡇࡇ࡛ࡣࠊ௦⾲ⓗ࡞ࣃࢵࢣ࣮ࢪࢆ⤂ࡋࡲࡍࠋ ࣃࢵࢣ࣮ࢪྡ MDYDODQJ ㄝ᫂ ᩥᏐิࡢ᧯సࡸࢩࢫࢸ࣒࣮࣮࢜࣌ࣞࢩࣙࣥ࡞ࠊᇶᮏⓗ࡞ᶵ⬟ࢆᢅ࠺ࢡࣛ ࢫࢆᥦ౪ࡍࡿࠋ MDYDXWLO ࢥࣞࢡࢩࣙࣥࣇ࣮࣒࣮ࣞ࣡ࢡࠊ࣋ࣥࢺࣔࢹࣝࠊ᪥ᶵ⬟ࠊᅜ㝿ࠊ࠾ࡼ ࡧࡉࡲࡊࡲ࡞࣮ࣘࢸࣜࢸࢡࣛࢫࢆᥦ౪ࡍࡿࠋ MDYDLR ࢫࢺ࣮࣒ࣜࠊ┤ิࠊධฟຊ⏝ࡍࡿࢡࣛࢫࢆᥦ౪ࡍࡿࠋ MDYDVTO ࢹ࣮ࢱࢯ࣮ࢫ ㏻ᖖࡣ࣮ࣜࣞࢩࣙࢼࣝࢹ࣮ࢱ࣮࣋ࢫ ࡢࢹ࣮ࢱࢆᢅ࠺ࢡࣛ ࢫࢆᥦ౪ࡍࡿࠋ MDYDDZW ࣮ࣘࢨࣥࢱࣇ࢙࣮ࢫࡢసᡂཬࡧࢢࣛࣇࢵࢡࢫ࣓࣮ࢪࡢ࣌ࣥࢺ⏝ ࢡࣛࢫࢆᥦ౪ࡍࡿࠋ MDYDQHW ࢿࢵࢺ࣮࣡ࢡᶵ⬟ࢆᢅ࠺ࢡࣛࢫࢆᥦ౪ࡍࡿࠋ 8 1.2㻌 ᶆ‽䝷䜲䝤䝷䝸 㻝㻚㻞㻚㻞 㻭㻼㻵ࢻ࣓࢟ࣗࣥࢺ㻌 ᶆ‽ࣛࣈࣛࣜࡢࢡࣛࢫࢆ࠸ࡇ࡞ࡍࡣࠊࢡࣛࢫࡀᣢࡘ࣓ࢯࢵࢻࡸࣇ࣮ࣝࢻࡢᵝ㸦$3, ᵝ㸧ࢆ▱ࡿᚲせࡀ࠶ࡾࡲࡍࠋᶆ‽ࣛࣈࣛࣜࡢ $3, ᵝࡣ $3, ࢻ࣓࢟ࣗࣥࢺࡋ࡚⏝ពࡉࢀ࡚ ࠸ࡲࡍࠋ $3, ࢻ࣓࢟ࣗࣥࢺࡣࢡࣛࢫࡸࣥࢱࣇ࢙࣮ࢫࡢᵝࢆࡲࡵࡓ +70/ ᙧᘧࡢࢻ࣓࢟ࣗࣥࢺ࡛ࡍࠋ ࡇࡢࢻ࣓࢟ࣗࣥࢺࢆ⏝ࡍࡿࠊᶆ‽ࣛࣈࣛࣜࡢࢡࣛࢫࡸࣥࢱࣇ࢙࣮ࢫࡢヲ⣽ࢆㄪࡽࢀࡲ ࡍࠋࡇࡇ࡛ࡣࠊ$3, ࢻ࣓࢟ࣗࣥࢺࡢཧ↷᪉ἲࢆ⤂ࡋࡲࡍࠋ ௨ୗࡣࠊ$3, ࢻ࣓࢟ࣗࣥࢺࡢ⏬㠃࡛ࡍࠋ 85/KWWSGRFVRUDFOHFRPMDYDVHMSDSL 䐟 䐡 䐠 ձ ղ ճ ࣃࢵࢣ࣮ࢪࣇ࣮࣒ࣞ ࣃࢵࢣ࣮ࢪࡢ୍ぴࡀ⾲♧ࡉࢀ࡚࠸ࡿࠋㄪࡓ࠸ࢡࣛࢫࠊࣥࢱࣇ࢙࣮ࢫࢆྵࡴࣃࢵࢣ࣮ ࢪࢆ㑅ᢥࡍࡿࠋ ࢡࣛࢫࣇ࣮࣒ࣞ ձ࡛㑅ᢥࡋࡓࣃࢵࢣ࣮ࢪྵࡲࢀࡿࢡࣛࢫࠊࣥࢱࣇ࢙࣮ࢫࡢ୍ぴࡀ⾲♧ࡉࢀࡿࠋ㉳ື ࡣࡍ࡚ࡢࢡࣛࢫࠊࣥࢱࣇ࢙࣮ࢫࡀ⾲♧ࡉࢀ࡚࠸ࡿࠋㄪࡓ࠸ࢡࣛࢫࢆ㑅ᢥࡍࡿࠋ ࢡࣛࢫࢹ࣮ࢱࣇ࣮࣒ࣞ ղ࡛㑅ᢥࡋࡓࢡࣛࢫࠊࣥࢱࣇ࢙࣮ࢫࡢヲ⣽࡞ㄝ᫂ࡀ⾲♧ࡉࢀࡿࠋ㉳ືࡣࣃࢵࢣ࣮ࢪ ࡢㄝ᫂ࡀ⾲♧ࡉࢀ࡚࠸ࡿࠋ 9 ➨ 1 ❶㻌 Java 䛾䝷䜲䝤䝷䝸 㻝㻚㻟 MDYDODQJࣃࢵࢣ࣮ࢪ MDYDODQJ ࣃࢵࢣ࣮ࢪࡣᇶᮏⓗ࡞ࢡࣛࢫࢆᥦ౪ࡍࡿࣃࢵࢣ࣮ࢪ࡛ࡍࠋࡇࡇ࡛ࡣࠊMDYDODQJ ࣃ ࢵࢣ࣮ࢪྵࡲࢀࡿࢡࣛࢫࡢ୰ࡽࠊḟࡢࢡࣛࢫࢆ⤂ࡋࡲࡍࠋ ͑ 2EMHFWࢡࣛࢫ ͑ 6WULQJࢡࣛࢫ ͑ 6WULQJ%XLOGHUࢡࣛࢫ ͑ ,QWHJHUࢡࣛࢫ MDYDODQJ ࣃࢵࢣ࣮ࢪྵࡲࢀࡿࡍ࡚ࡢࢡࣛࢫࠊࣥࢱࣇ࢙࣮ࢫࡣ⮬ືⓗ࣏࣮ࣥࢺࡉࢀ ࡿࡓࡵࠊ᫂♧ⓗ࡞ LPSRUW ᩥࡢグ㏙ࡸࣃࢵࢣ࣮ࢪྡࡼࡿࢡࣛࢫࡢಟ㣭ࡣせ࡛ࡍࠋ 㻝㻚㻟㻚㻝 㻻㼎㼖㼑㼏㼠ࢡࣛࢫ㻌 2EMHFW ࢡࣛࢫࡣࡍ࡚ࡢࢡࣛࢫࡢࢫ࣮ࣃ࣮ࢡࣛࢫ࡛ࡍࠋࢡࣛࢫࢆᐃ⩏ࡍࡿ㝿ࢫ࣮ࣃ࣮ࢡࣛ ࢫࢆᣦᐃࡋ࡞ࡗࡓሙྜࡣࠊࢥࣥࣃࣛࡀࠕH[WHQGVMDYDODQJ2EMHFWࠖࡢグ㏙ࢆ㏣ຍࡋࡲࡍࠋ 2EMHFW ࢡࣛࢫᐃ⩏ࡉࢀ࡚࠸ࡿ࣓ࢯࢵࢻࡣࠊࡍ࡚ࡢ࢜ࣈࢪ࢙ࢡࢺ࡛⏝ྍ⬟࡛ࡍࠋ MDYDODQJ2EMHFW ࢡࣛࢫࡢ࣓ࢯࢵࢻ SXEOLFERROHDQHTXDOV 2EMHFWREM ㄝ᫂ ࡇࡢ࢜ࣈࢪ࢙ࢡࢺᘬᩘ࡛ᣦᐃࡋࡓ࢜ࣈࢪ࢙ࢡࢺࡀࠊࠕ➼ࡋ࠸ࠖ࢜ࣈࢪ࢙ࢡࢺ࡛࠶ ࡿ࠺ࢆุᐃࡍࡿࠋᚲせᛂࡌ࡚ࠊࢧࣈࢡࣛࢫ࡛࣮࢜ࣂ࣮ࣛࢻࡍࡿࠋ ᘬᩘ REM ẚ㍑ᑐ㇟ࡢ࢜ࣈࢪ࢙ࢡࢺ SXEOLFLQWKDVK&RGH ㄝ᫂ ࡇࡢ࢜ࣈࢪ࢙ࢡࢺࡢࣁࢵࢩࣗࢥ࣮ࢻ್ࢆ㏉ࡍࠋ୍⯡ࡣࣁࢵࢩࣗࢸ࣮ࣈ࡛ࣝ⏝ࡍ ࡿࡓࡵ⏝ពࡉࢀ࡚࠸ࡿࠋ SXEOLF6WULQJWR6WULQJ ㄝ᫂ ࡇࡢ࢜ࣈࢪ࢙ࢡࢺࡢᩥᏐิ⾲⌧ࢆ㏉ࡍࠋࡍ࡚ࡢࢧࣈࢡࣛࢫ࡛࣮࢜ࣂ࣮ࣛࢻࡍࡿ ࡇࡀ᥎ዡࡉࢀ࡚࠸ࡿࠋ 10 1.3㻌 java.lang 䝟䝑䜿䞊䝆 㻝㻚㻟㻚㻞 ཧ↷ᆺࡢ್ࡢẚ㍑㸦㻩㻩₇⟬Ꮚ㼑㼝㼡㼍㼘㼟࣓ࢯࢵࢻ㸧㻌 ࠕ ࠖࢆ⏝࠸ࡓẚ㍑࡛ࡣࠊ ࡘࡢኚᩘࡀྠࡌ࢜ࣈࢪ࢙ࢡࢺࢆཧ↷ࡋ࡚࠸ࡿሙྜࡣ WUXHࠊ␗࡞ ࡿ࢜ࣈࢪ࢙ࢡࢺࢆཧ↷ࡋ࡚࠸ࡿሙྜࡣ IDOVH ࡞ࡾࡲࡍࠋ 䕔 ==₇⟬䛾⤖ᯝ䛜㼠㼞㼡㼑䛻䛺䜛ሙྜ str1 String str1 = "Hello"; String str2 = str1; Hello str1 == str2 э true str2 䕔㻌==₇⟬䛾⤖ᯝ䛜㼒㼍㼘㼟㼑䛻䛺䜛ሙྜ㻌 str1 Hello String str1 = new String("Hello"); String str2 = new String("Hello"); str2 str1 == str2 э false Hello ࢜ࣈࢪ࢙ࢡࢺࡀ➼ࡋ࠸࠺ࡢุᐃᇶ‽ࡣࠊ࢜ࣈࢪ࢙ࢡࢺࡢᣢࡘពࡼࡗ࡚ኚࢃࡾࡲࡍࠋ ࡑࡢࡓࡵࠊࠕ ࠖࡼࡿẚ㍑࡛ࡣࠊ࢜ࣈࢪ࢙ࢡࢺࡀ➼ࡋ࠸࠺ࢆṇࡋࡃุᐃ࡛ࡁ࡞࠸ሙྜ ࡀ࠶ࡾࡲࡍࠋ࠼ࡤࠊ6WULQJ ࢜ࣈࢪ࢙ࢡࢺࡣྠࡌᩥᏐิࢆᣢࡗ࡚࠸ࢀࡤ➼ࡋ࠸࢜ࣈࢪ࢙ࢡࢺ ุᐃࡍࡁ࡛ࡍࠋࡋࡋࠊࠕ ࠖࢆ⏝࠸ࡓẚ㍑࡛ࡣྠࡌᩥᏐิࢆᣢࡘ ࡘࡢ࢜ࣈࢪ࢙ࢡࢺࢆ ␗࡞ࡿ࢜ࣈࢪ࢙ࢡࢺุᐃࡋࡲࡍࠋ ࢜ࣈࢪ࢙ࢡࢺࡀ➼ࡋ࠸࠺ࡢุᐃࡣࠊࠕ ࡛ࠖࡣ࡞ࡃ HTXDOV ࣓ࢯࢵࢻࢆ࠸ࡲࡍࠋ ⮬ศ࡛ࢡࣛࢫࢆᐃ⩏ࡍࡿࡁࡣࠊ➼ࡋ࠸࢜ࣈࢪ࢙ࢡࢺ࡛࠶ࢀࡤࠕWUXHࠖࢆ㏉ࡍࡼ࠺ HTXDOV ࣓ࢯࢵࢻࢆ࣮࢜ࣂ࣮ࣛࢻࡋࡲࡍࠋ 䕔㻌equals䝯䝋䝑䝗䛻䜘䜛䜸䝤䝆䜵䜽䝖䛾ẚ㍑㻌 str1 str2 Hello Hello str1.equals(str2) э true 11
© Copyright 2024 Paperzz