Class TempFinder
java.lang.Object
TempFinder
public class TempFinder
- extends Object
Class to find the temperature in a web page.
- Author:
- Barb Ericson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TempFinder
public TempFinder()
getTemp
public String getTemp(String fileName)
- Method to find the temperature in the passed
file
- Parameters:
fileName
- the name of the file to look in
getTempFromNetwork
public String getTempFromNetwork(String urlStr)
- Method to get the temperature from a network
- Parameters:
urlStr
- the url as a string
- Returns:
- the temperature as a string
main
public static void main(String[] args)