Kaynağa Gözat

added the explanation

Christian Sheridan 6 yıl önce
ebeveyn
işleme
cd8ff7fa68
3 değiştirilmiş dosya ile 23 ekleme ve 0 silme
  1. BIN
      .DS_Store
  2. 23
    0
      ChristianSheridan.rtf
  3. BIN
      CodeSamples/.DS_Store

BIN
.DS_Store Dosyayı Görüntüle


+ 23
- 0
ChristianSheridan.rtf Dosyayı Görüntüle

@@ -0,0 +1,23 @@
1
+{\rtf1\ansi\ansicpg1252\cocoartf1561\cocoasubrtf600
2
+{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;}
3
+{\colortbl;\red255\green255\blue255;\red53\green53\blue53;}
4
+{\*\expandedcolortbl;;\cssrgb\c27059\c27059\c27059;}
5
+{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{hyphen\}}{\leveltext\leveltemplateid1\'01\uc0\u8259 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1}}
6
+{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}}
7
+\margl1440\margr1440\vieww10800\viewh8400\viewkind0
8
+\deftab560
9
+\pard\pardeftab560\slleading20\partightenfactor0
10
+
11
+\f0\fs24 \cf2 Reading from a website\
12
+\pard\pardeftab560\pardirnatural\partightenfactor0
13
+\ls1\ilvl0\cf2 {\listtext	\uc0\u8259 	}first they import the utilities needed for the function to properly examine the text in the website\
14
+\ls1\ilvl0{\listtext	\uc0\u8259 	}Declare the class as URLExpSimple\
15
+\ls1\ilvl0{\listtext	\uc0\u8259 	}They create a URL called mySite and set it equal to the website that they want to examine\
16
+\ls1\ilvl0{\listtext	\uc0\u8259 	}Then they use the URLConnection to open the site so that it is able to be read\
17
+\ls1\ilvl0{\listtext	\uc0\u8259 	}They set the Scanner to the name \'93in\'94 and use the scanner to look through the website with the InputSteamReader\
18
+\ls1\ilvl0{\listtext	\uc0\u8259 	}set the count equal to zero\
19
+\ls1\ilvl0{\listtext	\uc0\u8259 	}Use a while loop to add to the count each time the string appears in the website\
20
+\ls1\ilvl0{\listtext	\uc0\u8259 	}Print out the number of times that the count occurs using concatenation\
21
+\ls1\ilvl0{\listtext	\uc0\u8259 	}And then close the scanner\
22
+\ls1\ilvl0{\listtext	\uc0\u8259 	}I believe they use the printstacktrace in case their is no count to be added to\
23
+}

BIN
CodeSamples/.DS_Store Dosyayı Görüntüle