#22 Added a file with the explanation

开启中
christiansheridan 请求将 1 次代码提交从 christiansheridan/OldTexasCode:master 合并至 master

Here is a copy of what I wrote in the file:

Reading from a website

  • first they import the utilities needed for the function to properly examine the text in the website
  • Declare the class as URLExpSimple
  • They create a URL called mySite and set it equal to the website that they want to examine
  • Then they use the URLConnection to open the site so that it is able to be read
  • They set the Scanner to the name “in” and use the scanner to look through the website with the InputSteamReader
  • set the count equal to zero
  • Use a while loop to add to the count each time the string appears in the website
  • Print out the number of times that the count occurs using concatenation
  • And then close the scanner
  • I believe they use the printstacktrace in case their is no count to be added to
Here is a copy of what I wrote in the file: Reading from a website - first they import the utilities needed for the function to properly examine the text in the website - Declare the class as URLExpSimple - They create a URL called mySite and set it equal to the website that they want to examine - Then they use the URLConnection to open the site so that it is able to be read - They set the Scanner to the name “in” and use the scanner to look through the website with the InputSteamReader - set the count equal to zero - Use a while loop to add to the count each time the string appears in the website - Print out the number of times that the count occurs using concatenation - And then close the scanner - I believe they use the printstacktrace in case their is no count to be added to
该合并请求可以进行自动合并操作。
登陆 并参与到对话中。
未选择标签
未选择里程碑
未指派成员
1 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。