<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/javastudy/">
    <title>javastudy @ ウィキ</title>
    <link>http://w.atwiki.jp/javastudy/</link>
    <atom:link href="https://w.atwiki.jp/javastudy/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>javastudy @ ウィキ</description>

    <dc:language>ja</dc:language>
    <dc:date>2008-03-18T21:41:24+09:00</dc:date>
    <utime>1205844084</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/javastudy/pages/40.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/javastudy/pages/39.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/javastudy/pages/38.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/javastudy/pages/37.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/javastudy/pages/36.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/javastudy/pages/35.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/javastudy/pages/34.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/javastudy/pages/33.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/javastudy/pages/32.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/javastudy/pages/31.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/javastudy/pages/40.html">
    <title>文字列自由自在</title>
    <link>https://w.atwiki.jp/javastudy/pages/40.html</link>
    <description>
      
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;★文字列自由自在&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;          &lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;■&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;String&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;クラスのメソッド&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:17.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:174.85pt;padding-top:0mm;border-bottom:#ece9d8;height:17.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;233&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;length()&lt;/span&gt;&lt;/strong&gt; &lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;文字列の長さを得る&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:391.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;523&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;String a =
“ABC”;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;int l =
a.length();&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;　←&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;に格納した文字列の長さを返す（この場合３）&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:17.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:174.85pt;padding-top:0mm;border-bottom:#ece9d8;height:17.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;233&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;substring()&lt;/span&gt;&lt;/strong&gt; &lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;文字列の一部を得る&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:391.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;523&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;String a =
“ABCDEF”;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;String b =
a.substring(2,5);&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;　インデックス番号２から５までを返す（&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;含まず）&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:17.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:174.85pt;padding-top:0mm;border-bottom:#ece9d8;height:17.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;233&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;compareTo()&lt;/span&gt;&lt;/strong&gt; &lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;文字列を比較する&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:391.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;523&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;String a =
“ABC”;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;String b =
“ABC”;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Int c =
a.compareTo(b);&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;　←&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;と&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;を辞書的に比較。&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;が&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;より前なら負、後なら正、同じなら０を返す&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;■&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;StringTokenizer&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;クラス&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;文字列を分割する（トークン）。&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;java.util&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;パッケージをインポートして利用&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;width:436.95pt;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;583&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:436.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;583&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;StringTokenizer
a = new StringTokenizer(&lt;u&gt;“I,Love,Cat&lt;/u&gt;”, ”&lt;u&gt;,”&lt;/u&gt;);&lt;/span&gt; &lt;span style=&quot;font-size:8pt;&quot;&gt;←文字列とどの場所で区切るかを指定&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:3.8pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:94.9pt;padding-top:0mm;border-bottom:#ece9d8;height:3.8pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;127&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;hasMoreTokens()&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:189.05pt;padding-top:0mm;border-bottom:#ece9d8;height:3.8pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;252&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;トークンがあれば&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;を返す&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt 18pt;text-indent:-18pt;text-align:left;&quot; align=&quot;left&quot;&gt;■&lt;span style=&quot;font:7pt &#039;Times New Roman&#039;;&quot;&gt;    &lt;/span&gt;
サンプルプログラム&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;import java.util.*;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;class Add {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;  
public static void main(String[] args) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      StringTokenizer v = new StringTokenizer(&amp;quot;a b
c&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      StringTokenizer n = new StringTokenizer(&amp;quot;1 2
3&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      String s = v.nextToken();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      int sum = Integer.parseInt(n.nextToken());&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;     &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      while(v.hasMoreTokens()) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;         s = s + &amp;quot;+&amp;quot; + (v.nextToken());&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;         sum = sum +
Integer.parseInt(n.nextToken());&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      System.out.println(s + &amp;quot; = &amp;quot; + + sum);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;  &lt;/span&gt; &lt;span style=&quot;font-size:10pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
    </description>
    <dc:date>2008-03-18T21:41:24+09:00</dc:date>
    <utime>1205844084</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/javastudy/pages/39.html">
    <title>ラッパークラス</title>
    <link>https://w.atwiki.jp/javastudy/pages/39.html</link>
    <description>
      
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;★ラッパークラス&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;■基本データ型のラッパークラス&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;ラッパークラスは基本データ型（整数型、文字型、論理型）に対応している。&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:16pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:78.95pt;padding-top:0mm;border-bottom:#ece9d8;height:16pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;105&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;基本データ型&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:95.9pt;padding-top:0mm;border-bottom:#ece9d8;height:16pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;128&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;ラッパークラス&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;tr style=&quot;height:16pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:78.95pt;padding-top:0mm;border-bottom:#ece9d8;height:16pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;105&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;byte&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:95.9pt;padding-top:0mm;border-bottom:#ece9d8;height:16pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;128&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Byte&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;tr style=&quot;height:16pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:78.95pt;padding-top:0mm;border-bottom:#ece9d8;height:16pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;105&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;short&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:95.9pt;padding-top:0mm;border-bottom:#ece9d8;height:16pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;128&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Short&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;tr style=&quot;height:16pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:78.95pt;padding-top:0mm;border-bottom:#ece9d8;height:16pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;105&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;int&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:95.9pt;padding-top:0mm;border-bottom:#ece9d8;height:16pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;128&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Integer&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;tr style=&quot;height:16pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:78.95pt;padding-top:0mm;border-bottom:#ece9d8;height:16pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;105&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;long&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:95.9pt;padding-top:0mm;border-bottom:#ece9d8;height:16pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;128&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Long&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;tr style=&quot;height:16pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:78.95pt;padding-top:0mm;border-bottom:#ece9d8;height:16pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;105&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;float&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:95.9pt;padding-top:0mm;border-bottom:#ece9d8;height:16pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;128&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Float&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;tr style=&quot;height:16pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:78.95pt;padding-top:0mm;border-bottom:#ece9d8;height:16pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;105&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;double&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:95.9pt;padding-top:0mm;border-bottom:#ece9d8;height:16pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;128&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Double&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;tr style=&quot;height:16pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:78.95pt;padding-top:0mm;border-bottom:#ece9d8;height:16pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;105&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;char&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:95.9pt;padding-top:0mm;border-bottom:#ece9d8;height:16pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;128&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Character&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;tr style=&quot;height:16pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:78.95pt;padding-top:0mm;border-bottom:#ece9d8;height:16pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;105&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;boolean&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:95.9pt;padding-top:0mm;border-bottom:#ece9d8;height:16pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;128&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Boolean&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;■数値型のラッパークラス&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;数値型（&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Byte,Short,Integer,Long,Float,Double,&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;）は次のメソッドを使用して、他の型に変換した値が得られる&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:247pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;329&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;byteValue()   
shortValue()    intValue()&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;longValue()   
floatValue()     doubleValue()&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;table style=&quot;background:#ffccff;width:436.95pt;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;583&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:436.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;583&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Integer a = new
Integer(&lt;u&gt;30&lt;/u&gt;); &lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;←&lt;/span&gt;&lt;span style=&quot;font-size:9pt;&quot;&gt;コンストラクタは対応する基本データ型の値や変数を受け取る&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Double b =
a.doubleValue();&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;※オブジェクトの比較&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;equals()&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;メソッド&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;･･･ラッパークラス同士を比較する&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:247pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;329&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Integer a = new
Integer(10);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Integer b = new
Integer(5);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Boolean c =
a.&lt;strong&gt;equals&lt;/strong&gt;(b); &lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;←等しければ&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;true&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;■文字列の変換&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;変換した値が得られる&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:3.8pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:82.3pt;padding-top:0mm;border-bottom:#ece9d8;height:3.8pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;110&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;クラス&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:82.35pt;padding-top:0mm;border-bottom:#ece9d8;height:3.8pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;110&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;メソッド&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:263.3pt;padding-top:0mm;border-bottom:#ece9d8;height:3.8pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;351&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;働き&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;tr style=&quot;height:3.65pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:82.3pt;padding-top:0mm;border-bottom:#ece9d8;height:3.65pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;110&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Byte&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:82.35pt;padding-top:0mm;border-bottom:#ece9d8;height:3.65pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;110&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;parseByte()&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:263.3pt;padding-top:0mm;border-bottom:#ece9d8;height:3.65pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;351&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;文字列を&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;byte&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;型に変換&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;tr style=&quot;height:3.65pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:82.3pt;padding-top:0mm;border-bottom:#ece9d8;height:3.65pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;110&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Short&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:82.35pt;padding-top:0mm;border-bottom:#ece9d8;height:3.65pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;110&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;parseShort()&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:263.3pt;padding-top:0mm;border-bottom:#ece9d8;height:3.65pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;351&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;文字列を&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;short&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;型に変換&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;tr style=&quot;height:3.65pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:82.3pt;padding-top:0mm;border-bottom:#ece9d8;height:3.65pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;110&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Long&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:82.35pt;padding-top:0mm;border-bottom:#ece9d8;height:3.65pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;110&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;parseLong()&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:263.3pt;padding-top:0mm;border-bottom:#ece9d8;height:3.65pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;351&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;文字列を&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;long&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;型に変換&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;tr style=&quot;height:3.65pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:82.3pt;padding-top:0mm;border-bottom:#ece9d8;height:3.65pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;110&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Integer&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:82.35pt;padding-top:0mm;border-bottom:#ece9d8;height:3.65pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;110&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;parseInteger()&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:263.3pt;padding-top:0mm;border-bottom:#ece9d8;height:3.65pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;351&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;文字列を&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;型に変換&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:337.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;451&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Int a =
Integer.parseInt(“&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;５&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;”);&lt;/span&gt; &lt;span style=&quot;font-size:11pt;&quot;&gt;←&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;の値は&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;になります。&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt 18pt;text-indent:-18pt;text-align:left;&quot; align=&quot;left&quot;&gt;■&lt;span style=&quot;font:7pt &#039;Times New Roman&#039;;&quot;&gt;    &lt;/span&gt;
サンプルプログラム&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;class Change {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;  
public static void main(String[] args) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      String a = &amp;quot;34&amp;quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      int b = 50;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      int c = Integer.parseInt(a);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      int d = b + c;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      System.out.println(a + &amp;quot;+&amp;quot; + b + &amp;quot;=&amp;quot; + d);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;  &lt;/span&gt; &lt;span style=&quot;font-size:10pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
    </description>
    <dc:date>2008-03-18T20:55:27+09:00</dc:date>
    <utime>1205841327</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/javastudy/pages/38.html">
    <title>アクセス修飾子</title>
    <link>https://w.atwiki.jp/javastudy/pages/38.html</link>
    <description>
      
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;★アクセス修飾子&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;public&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;………どんなときも利用可&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;protected&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;…･同じパッケージ内からのみ利用可。継承はパッケージに関わらず可能&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;private&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;……･オブジェクト内からのみ利用できる。&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt; &lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;p&gt;&lt;span style=&quot;font-size:11pt;color:#000000;&quot;&gt;※メンバひとつにつき&lt;/span&gt;&lt;span style=&quot;font-size:11pt;color:#000000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;font-size:11pt;color:#000000;&quot;&gt;つだけつけることができる&lt;/span&gt;&lt;/p&gt;
    </description>
    <dc:date>2008-03-18T00:59:54+09:00</dc:date>
    <utime>1205769594</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/javastudy/pages/37.html">
    <title>パッケージ</title>
    <link>https://w.atwiki.jp/javastudy/pages/37.html</link>
    <description>
      
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;第&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;8&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;章&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;★パッケージ&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;■パッケージとは？&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;クラスを一まとめにしたもの&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;■パッケージの作り方&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:391.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;523&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;ファイル名：&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;A.java&lt;/span&gt;&lt;/strong&gt; &lt;span style=&quot;font-size:11pt;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;←&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;をつけたクラス名&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;package
&lt;u&gt;pack1;&lt;/u&gt;&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;　　　　←パッケージ名（先頭に）記述&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;public class
&lt;strong&gt;A&lt;/strong&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;
&lt;strong&gt;※パッケージのインポート&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;パッケージに含まれるクラスやインタフェースを利用する&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:391.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;523&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Import&lt;/span&gt;&lt;/strong&gt; &lt;span style=&quot;font-size:11pt;&quot;&gt;pack1.&lt;u&gt;B;&lt;/u&gt;  &lt;/span&gt; &lt;span style=&quot;font-size:11pt;&quot;&gt;←クラス名、&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;を入れるとパッケージ内すべて利用可&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;class C
{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;   B b = new
B();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;
&lt;strong&gt;※パッケージの宣言とインポート&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;パッケージ中でほかのパッケージを利用する&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:391.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;523&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;package
pack2;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Import&lt;/span&gt;&lt;/strong&gt; &lt;span style=&quot;font-size:11pt;&quot;&gt;pack1.&lt;u&gt;A;&lt;/u&gt;  &lt;/span&gt; &lt;span style=&quot;font-size:11pt;&quot;&gt;←先に宣言を記述&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt 18pt;text-indent:-18pt;text-align:left;&quot; align=&quot;left&quot;&gt;■&lt;span style=&quot;font:7pt &#039;Times New Roman&#039;;&quot;&gt;    &lt;/span&gt;
サンプルプログラム&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;パッケージの用意&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;package a;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;public class Hello {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;  
public void hello() {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      System.out.println(&amp;quot;HELLO!&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;  &lt;/span&gt; &lt;span style=&quot;font-size:10pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;パッケージの利用&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;import a.*;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;class HelloA {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;  
public static void main(String[] args) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      Hello h = new Hello();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;     &lt;/span&gt; &lt;span style=&quot;font-size:10pt;&quot;&gt;h.hello();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;  
}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
    </description>
    <dc:date>2008-03-18T00:53:12+09:00</dc:date>
    <utime>1205769192</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/javastudy/pages/36.html">
    <title>キーボード入力</title>
    <link>https://w.atwiki.jp/javastudy/pages/36.html</link>
    <description>
      
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;★キーボード入力&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;■キーボードからのデータ入力&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;キーボードから半角&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;文字のデータを入力する&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:157.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;211&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;int
a;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;a =
System.in.read();&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;■&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;BufferedReader&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;行単位でデータを読み込む…&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;BufferedReader&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;クラスを使う&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Reader&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;クラスのオブジェクトを引数として受け取る&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:391.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;523&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;InputStreamReader a = new
InputStreamReader(System.in);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;BufferedReader b
= new BufferedReader(a);&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt 18pt;text-indent:-18pt;text-align:left;&quot; align=&quot;left&quot;&gt;※&lt;span style=&quot;font:7pt &#039;Times New Roman&#039;;&quot;&gt;    &lt;/span&gt;readLine()メソッド…読み込んだ1行のデータをStringクラスの文字列で返す。&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt 18pt;&quot; align=&quot;left&quot;&gt;データがなくなるとnullを返す&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:139.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;187&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;String c =
b.readLine();&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt 18pt;text-indent:-18pt;text-align:left;&quot; align=&quot;left&quot;&gt;■&lt;span style=&quot;font:7pt &#039;Times New Roman&#039;;&quot;&gt;    &lt;/span&gt;サンプルプログラム&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;import java.io.*;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;class NumberGame {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;  
public static void main(String[] args) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      try {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;           BufferedReader in =&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;            new BufferedReader(new
InputStreamReader(System.in));&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;           int a, b = 7;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;           System.out.println(&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;名前を入力してください&lt;/span&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;           String name = in.readLine();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;           System.out.println(&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;数あてクイス&lt;/span&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;！０&lt;/span&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;から&lt;/span&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;９&lt;/span&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;の数字を入力してね&lt;/span&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;           String c = in.readLine();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;           a = Integer.parseInt(c);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;           while(a != b) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;                if((a == b-1) || (a == b+1))&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;               &lt;/span&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;System.out.println(&amp;quot;おしい！&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;                else if(a &amp;gt; b+1)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;                System.out.println(&amp;quot;もっと小さい数です&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;                else if(a &amp;lt; b-1)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;                System.out.println(&amp;quot;もっと大きい数です&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;                c = in.readLine();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;               &lt;/span&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;a =
Integer.parseInt(c);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;           }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;           System.out.println(&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;正解&lt;/span&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;！&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;+ name + &amp;quot;さん、おめでとう！！&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;} catch(Exception
ie) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;System.out.println(&amp;quot;エラーです&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;  
}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;
&lt;p&gt; &lt;br /&gt;
■サンプルコード&lt;br /&gt;
import java.io.*;&lt;/p&gt;
&lt;p&gt;class TransWord {&lt;br /&gt;
   public static void main(String[] args) {&lt;br /&gt;
      try {&lt;br /&gt;
     BufferedReader in =&lt;br /&gt;
  new BufferedReader(new FileReader(&amp;quot;mydic.txt&amp;quot;));&lt;br /&gt;
    &lt;br /&gt;
           String a = args[0];&lt;br /&gt;
    &lt;br /&gt;
           String eword, jword = null;&lt;br /&gt;
     while((eword = in.readLine()) != null) {&lt;br /&gt;
    if(a.equals(eword)) {&lt;br /&gt;
   jword = in.readLine();&lt;br /&gt;
   break;&lt;br /&gt;
    }&lt;br /&gt;
     }&lt;/p&gt;
&lt;p&gt;     if(jword == null)&lt;br /&gt;
  System.out.println(a + &amp;quot;はありませんでした。&amp;quot;);&lt;br /&gt;
     else&lt;br /&gt;
  System.out.println(jword);&lt;/p&gt;
&lt;p&gt;     in.close();&lt;br /&gt;
 } catch (FileNotFoundException e) {&lt;br /&gt;
     System.out.println(&amp;quot;ファイルがありません。&amp;quot;);&lt;br /&gt;
 } catch (Exception e) {&lt;br /&gt;
     System.out.println(&amp;quot;コマンドファイルがありません。&amp;quot;);&lt;br /&gt;
       }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;&lt;br /&gt;
■サンプルコード&lt;br /&gt;&lt;br /&gt;
import java.io.*;&lt;/p&gt;
&lt;p&gt;class MyEditor {&lt;br /&gt;
   public static void main(String[] args) {&lt;br /&gt;
      try {&lt;br /&gt;
     FileWriter out = new FileWriter(args[0]);&lt;br /&gt;
     BufferedReader in =&lt;br /&gt;
  new BufferedReader(new InputStreamReader(System.in));&lt;/p&gt;
&lt;p&gt;     String data;&lt;/p&gt;
&lt;p&gt;     int i = 1;&lt;br /&gt;
     System.out.println(&amp;quot;データを入力して下さい。（終了：0)&amp;quot;);&lt;/p&gt;
&lt;p&gt;     while(!(data = in.readLine()).equals(&amp;quot;0&amp;quot;))&lt;br /&gt;
  out.write(data + &amp;quot;\n&amp;quot;);&lt;/p&gt;
&lt;p&gt;     System.out.println(&amp;quot;終了します。&amp;quot;);&lt;br /&gt;
  out.close();&lt;br /&gt;
      } catch (Exception e) {&lt;br /&gt;
    System.out.println(e); // エラーが起こった場合にその内容を表示&lt;br /&gt;
      }&lt;br /&gt;
   }&lt;br /&gt;
}&lt;/p&gt;
&lt;/div&gt;
    </description>
    <dc:date>2008-03-17T20:43:41+09:00</dc:date>
    <utime>1205754221</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/javastudy/pages/35.html">
    <title>バイナリの読み書き（１）</title>
    <link>https://w.atwiki.jp/javastudy/pages/35.html</link>
    <description>
      
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;第&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;7&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;章&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;★バイナリの読み書き&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;■バイナリファイルの読み込み手順&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;①ファイルを開く&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;FileStream&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;（ストリームクラス）のオブジェクトを生成してファイルを読み込む&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:373.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;499&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;FileInputStream&lt;/span&gt;&lt;/strong&gt; &lt;span style=&quot;font-size:11pt;&quot;&gt;in = new &lt;strong&gt;FileInputStream&lt;/strong&gt;
(“&lt;u&gt;file3.dat&lt;/u&gt;”); &lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;←ファイル生成&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;②データを読み込む&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;read&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;メソッドを使用する。読み込んだ&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;バイトデータを&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;型で返す。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;読み込むデータがなくなるとー１を返す。&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:364.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;487&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Int
c;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;c =
in.read();&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;③ファイルを閉じる&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;close()&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;メソッドを使用&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:364.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;487&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;in.close();&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;■バイナリファイルの書き出し手順&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;①ファイルを開く&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;FileOutputStream&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;（ストリームクラス）のオブジェクトを生成してファイルを書き出す&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:364.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;487&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;FileOutputStream&lt;/span&gt;&lt;/strong&gt; &lt;span style=&quot;font-size:11pt;&quot;&gt;out = new &lt;strong&gt;FileOutputStream&lt;/strong&gt;
(“&lt;u&gt;file4.dat&lt;/u&gt;”);  &lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;←この名前でファイル生成&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;②データを書き出す&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;write()&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;メソッドを使用する。引数として与えたデータをファイルに書き出す。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;引数には&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;型か&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;byte&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;型の値を指定&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:364.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;487&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;out.write(65);&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;③ファイルを閉じる&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;close()&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;メソッドを使用&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:364.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;487&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;out.close();&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt; &lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;■文字ストリームへの変換&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;InputStreamReader&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;バイナリ入力→文字入力へ変換&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;バイナリデータを読み込むオブジェクトを引数として受け取る&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:418.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;559&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;FileInputStream
ifile = new FileInputStream(“file5.dat”);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;InputStreamReader&lt;/span&gt;&lt;/strong&gt; &lt;u&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;in&lt;/span&gt;&lt;/u&gt; &lt;span style=&quot;font-size:11pt;&quot;&gt;= new
&lt;strong&gt;InputStreamReader(&lt;/strong&gt;&lt;u&gt;ifile&lt;/u&gt;&lt;strong&gt;);&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;                &lt;/span&gt; &lt;span style=&quot;font-size:11pt;&quot;&gt;↑オブジェクト名　　　↑&lt;/span&gt;&lt;span style=&quot;font-size:9pt;&quot;&gt;InputStreamReader&lt;/span&gt;&lt;span style=&quot;font-size:9pt;&quot;&gt;クラスのオブジェクト&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;OutputStreamReader&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;バイナリ出力→文字出力へ変換&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;バイナリデータを読み込むオブジェクトを引数として受け取る&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:418.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;559&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;FileOutputStream
ofile = new FileOutputStream(“file5.dat”);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;OnputStreamReader&lt;/span&gt;&lt;/strong&gt; &lt;u&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;out&lt;/span&gt;&lt;/u&gt; &lt;span style=&quot;font-size:11pt;&quot;&gt;= new
&lt;strong&gt;OutputStreamReader(&lt;/strong&gt;&lt;u&gt;ofile&lt;/u&gt;&lt;strong&gt;);&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;                &lt;/span&gt; &lt;span style=&quot;font-size:11pt;&quot;&gt;↑オブジェクト名　　　↑&lt;/span&gt;&lt;span style=&quot;font-size:9pt;&quot;&gt;OutputStreamReader&lt;/span&gt;&lt;span style=&quot;font-size:9pt;&quot;&gt;クラスのオブジェクト&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt 18pt;text-indent:-18pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;■&lt;span style=&quot;font:7pt &#039;Times New Roman&#039;;&quot;&gt;   &lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size:11pt;&quot;&gt;サンプルプログラム&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;import java.io.*;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;class InOut {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;  
public static void main(String[] args) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      try {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;          String filename = &amp;quot;file.dat&amp;quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;          FileOutputStream out = new
FileOutputStream(filename);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;          FileInputStream file = new
FileInputStream(filename);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;           InputStreamReader in = new
InputStreamReader(file);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;           for(byte i = 1; i &amp;lt;= 10; i++) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;              out.write(i);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;           }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;           int c;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;           while((c = in.read()) != -1) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;                System.out.print(c + &amp;quot; &amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;           }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;           in.close();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;           out.close();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      } catch (IOException e) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;          &lt;/span&gt; &lt;span style=&quot;font-size:10pt;&quot;&gt;System.out.println(&amp;quot;ファイルがありません。&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;  
}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
    </description>
    <dc:date>2008-03-13T20:59:18+09:00</dc:date>
    <utime>1205409558</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/javastudy/pages/34.html">
    <title>文字の書き出し</title>
    <link>https://w.atwiki.jp/javastudy/pages/34.html</link>
    <description>
      
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;第&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;7&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;章&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;★文字の書き出し&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;■テキストファイルの書き出しの手順&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;①ファイルを開く&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;FileWriter&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;（ストリームクラス）のオブジェクトを生成してファイルを書き出す&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:364.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;487&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;FileWriter&lt;/span&gt;&lt;/strong&gt; &lt;span style=&quot;font-size:11pt;&quot;&gt;out
= new &lt;strong&gt;FileWriter&lt;/strong&gt;(“&lt;u&gt;file2.txt&lt;/u&gt;”); &lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;←この名前でファイル生成&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;②データを書き出す&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;write()&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;メソッドを使用する。引数として与えたデータをファイルに書き出す。&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:364.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;487&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;out.write(“Hello\n”);&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;③ファイルを閉じる&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;close()&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;メソッドを使用&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:364.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;487&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;out.close();&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;※ファイルは&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;.java&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;と同じディレクトリに自動的に作成される&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:364.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;487&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;int
c;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;String s = new
String();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;While((c =
in.read()) ! = -1)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;   &lt;u&gt;s = s +
(char)c&lt;/u&gt;;  &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;↑読み込んだデータを文字型に変換し、&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;クラスのオブジェクトに代入&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt 18pt;text-indent:-18pt;text-align:left;&quot; align=&quot;left&quot;&gt;■&lt;span style=&quot;font:7pt &#039;Times New Roman&#039;;&quot;&gt;    &lt;/span&gt;
サンプルプログラム&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;import java.io.*;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;class WriteText {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;  
public static void main(String[] args) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      try {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;          FileWriter out = new
FileWriter(&amp;quot;math.text&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;          int a = 10, b = 5;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;          out.write(&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;加法&lt;/span&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;：&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;          out.write(a + &amp;quot;+&amp;quot; + b + &amp;quot;=&amp;quot; + (a+b) +
&amp;quot;\n&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;          out.write(&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;減法&lt;/span&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;；&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;          out.write(a + &amp;quot;-&amp;quot; + b + &amp;quot;=&amp;quot; + (a-b) +
&amp;quot;\n&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;          out.close();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      } catch(Exception e) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;          System.out.println(e);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;     &lt;/span&gt; &lt;span style=&quot;font-size:10pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;  
}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
    </description>
    <dc:date>2008-03-12T20:18:28+09:00</dc:date>
    <utime>1205320708</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/javastudy/pages/33.html">
    <title>文字の読み込み</title>
    <link>https://w.atwiki.jp/javastudy/pages/33.html</link>
    <description>
      
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;第&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;7&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;章&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;★文字の読み込み&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;■テキストファイルの読み込み手順&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;①ファイルを開く&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;FileReader&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;（ストリームクラス）のオブジェクトを生成してファイルを開く&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:364.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;487&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;FileReader&lt;/span&gt;&lt;/strong&gt; &lt;span style=&quot;font-size:11pt;&quot;&gt;in =
new &lt;strong&gt;FileReader&lt;/strong&gt;(“file1.txt”);&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;②データを読み込む&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;read()&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;メソッドを使用する。読み込んだ文字を&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;型の整数で返す。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;読み込むデータがなくなるとー１を返す。&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:364.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;487&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;int
c;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;c =
in.read();&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;③ファイルを閉じる&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;close()&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;メソッドを使用&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:364.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;487&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;in.close();&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;※ファイルを最後まで読み込む場合は&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;read()&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;メソッドがー１を返すまで読み込みを繰り返す。&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:364.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;487&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;int
c;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;String s = new
String();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;While((c =
in.read()) ! = -1)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;   &lt;u&gt;s = s +
(char)c&lt;/u&gt;;  &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;↑読み込んだデータを文字型に変換し、&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;クラスのオブジェクトに代入&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt 18pt;text-indent:-18pt;text-align:left;&quot; align=&quot;left&quot;&gt;■&lt;span style=&quot;font:7pt &#039;Times New Roman&#039;;&quot;&gt;    &lt;/span&gt;
サンプルプログラム&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;import java.io.*;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;class ReadText {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;  
public static void main(String[] args) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      try {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;          FileReader in = new
FileReader(args[0]);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;         &lt;/span&gt; &lt;span style=&quot;font-size:10pt;&quot;&gt;int
c;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;          String s = new String();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;          while((c = in.read()) ! = -1)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;             s = s + (char)c;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;          System.out.println(s);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;          in.close();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      }catch (IOException ie) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;        &lt;/span&gt; &lt;span style=&quot;font-size:10pt;&quot;&gt;System.out.println(&amp;quot;ファイルがありません&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;     &lt;/span&gt; &lt;span style=&quot;font-size:10pt;&quot;&gt;}catch (Exception
e) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;        &lt;/span&gt; &lt;span style=&quot;font-size:10pt;&quot;&gt;System.out.println(&amp;quot;ファイル指定がありません&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;  
}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
    </description>
    <dc:date>2008-03-12T19:38:30+09:00</dc:date>
    <utime>1205318310</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/javastudy/pages/32.html">
    <title>例外</title>
    <link>https://w.atwiki.jp/javastudy/pages/32.html</link>
    <description>
      
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;第&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;7&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;章&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;★例外&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;■例外と例外処理&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Exception&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;（例外）&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;…プログラム実行時に起こるエラー&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;　　　　　　　　　　&lt;strong&gt;例外処理&lt;/strong&gt;を行うことで異常終了を防ぐ&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Java&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;では例外が起こると&lt;u&gt;自動的に例外クラスのオブジェクト（&lt;/u&gt;&lt;/span&gt;&lt;u&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Exception&lt;/span&gt;&lt;/u&gt;&lt;u&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;クラスとサブクラス）が生成&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;される&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;■&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;例外処理の方法&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:364.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;487&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;try
{&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;例外が起こりそうな処理&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;}&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;catch(&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;例外クラス名　変数名&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;)
{&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;例外発生時に行う処理&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;}&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;finally{&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;処理&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;}&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt; &lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;■&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;throuws&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;節&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;例外が起こりそうなメソッドの処理&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:364.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;487&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;try
{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;text-indent:22pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;a(b);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;text-indent:22pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;text-indent:22pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;int b = 1;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;}
catch(&lt;u&gt;Exception&lt;/u&gt; e) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;void a(int b)
&lt;strong&gt;throws&lt;/strong&gt; &lt;u&gt;Exception&lt;/u&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt 18pt;text-indent:-18pt;text-align:left;&quot; align=&quot;left&quot;&gt;■&lt;span style=&quot;font:7pt &#039;Times New Roman&#039;;&quot;&gt;    &lt;/span&gt;
サンプルプログラム&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;class Main {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;  
public static void main(String[] args) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      try {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;         back(args[0]);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      } catch(Exception e){&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;        &lt;/span&gt; &lt;span style=&quot;font-size:10pt;&quot;&gt;System.out.println(&amp;quot;コマンドライン引数がありません&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      } finally {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;         System.out.println(&amp;quot;終了します&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;  
}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;  
static void back(String a) throws Exception {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;      System.out.println(a);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;  
}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size:10pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt; &lt;/div&gt;
    </description>
    <dc:date>2008-03-11T20:43:24+09:00</dc:date>
    <utime>1205235804</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/javastudy/pages/31.html">
    <title>ストリーム</title>
    <link>https://w.atwiki.jp/javastudy/pages/31.html</link>
    <description>
      
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;第&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;7&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;章&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14pt;color:#ff3399;&quot;&gt;★ストリーム&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;&lt;br /&gt;
■ファイルの種類&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;バイナリファイル、テキストファイル&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;&lt;br /&gt;
■&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;ストリーム&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;ファイルの書き込み、読み出しにおけるデータの流れ&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;ファイルの読み書きにストリーム専用クラスから生成したオブジェクトを使う&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;入力ストリーム&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;…データの読み込み&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;出力ストリーム&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;…データの書き出し&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;ストリームオブジェクト&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;…ストリームクラス&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt 18pt;text-indent:-18pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;・&lt;span style=&quot;font:7pt &#039;Times New Roman&#039;;&quot;&gt;   &lt;/span&gt;&lt;/span&gt; &lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;文字ストリーム&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;……&lt;u&gt;１６ビットの&lt;/u&gt;&lt;/span&gt;&lt;u&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Unicode&lt;/span&gt;&lt;/u&gt;&lt;u&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;文字&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;のデータを扱う&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt 18pt;text-indent:-18pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;・&lt;span style=&quot;font:7pt &#039;Times New Roman&#039;;&quot;&gt;   &lt;/span&gt;&lt;/span&gt; &lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;バイトストリーム&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;…&lt;/span&gt;&lt;u&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;8&lt;/span&gt;&lt;/u&gt;&lt;u&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;ビットのデータ&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;を扱う&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;&lt;br /&gt;
■&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size:11pt;color:#ff3399;&quot;&gt;ストリームを扱う&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;java.io&lt;/span&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;パッケージ…ストリームのためのクラス&lt;/span&gt;&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:6pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;background:#ff66ff;padding-bottom:0mm;border-left:#ece9d8;width:97.65pt;padding-top:0mm;border-bottom:#ece9d8;height:6pt;&quot; valign=&quot;top&quot; width=&quot;130&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;ストリーム&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;background:#FF00FF;padding-bottom:0mm;border-left:#ece9d8;width:97.65pt;padding-top:0mm;border-bottom:#ece9d8;height:6pt;&quot; valign=&quot;top&quot; width=&quot;130&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;入力ストリーム&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;background:#FF00FF;padding-bottom:0mm;border-left:#ece9d8;width:97.65pt;padding-top:0mm;border-bottom:#ece9d8;height:6pt;&quot; valign=&quot;top&quot; width=&quot;130&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;出力ストリーム&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;tr style=&quot;height:6pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;background:#ff66ff;padding-bottom:0mm;border-left:#ece9d8;width:97.65pt;padding-top:0mm;border-bottom:#ece9d8;height:6pt;&quot; valign=&quot;top&quot; width=&quot;130&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;文字ストリーム&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:97.65pt;padding-top:0mm;border-bottom:#ece9d8;height:6pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;130&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Reader&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:97.65pt;padding-top:0mm;border-bottom:#ece9d8;height:6pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;130&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Writer&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;tr style=&quot;height:6pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;background:#ff66ff;padding-bottom:0mm;border-left:#ece9d8;width:97.65pt;padding-top:0mm;border-bottom:#ece9d8;height:6pt;&quot; valign=&quot;top&quot; width=&quot;130&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;ﾊﾞｲﾅﾘｽﾄﾘｰﾑ&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:97.65pt;padding-top:0mm;border-bottom:#ece9d8;height:6pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;130&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;InputStream&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:97.65pt;padding-top:0mm;border-bottom:#ece9d8;height:6pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;130&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;OutputStream&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;
Java.ioパッケージに用意されたストリームクラスを利用する際は最初に下記の文を記述&lt;/div&gt;
&lt;table style=&quot;background:#ffccff;border-collapse:collapse;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFCCFF&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height:18.35pt;&quot;&gt;&lt;td style=&quot;border-right:#ece9d8;padding-right:4.95pt;border-top:#ece9d8;padding-left:4.95pt;padding-bottom:0mm;border-left:#ece9d8;width:94.95pt;padding-top:0mm;border-bottom:#ece9d8;height:18.35pt;background-color:transparent;&quot; valign=&quot;top&quot; width=&quot;127&quot;&gt;
&lt;div style=&quot;margin:0mm 0mm 0pt;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;Import
java.io.*;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin:0mm 0mm 0pt;&quot; align=&quot;left&quot;&gt;
&lt;span&gt; &lt;/span&gt;※　これがないとコンパイルエラーになる&lt;/div&gt;
    </description>
    <dc:date>2008-03-11T20:09:14+09:00</dc:date>
    <utime>1205233754</utime>
  </item>
  </rdf:RDF>
