Updater.java
public boolean upToDate(double appVersion) {
		try{
			Document doc = Jsoup.connect("https://github.com/jnstockley/AddressBookREST/blob/master/Version.txt").get(); //The URL to where the version text file is stored
			String currentVersion = doc.select("table").first().text(); //Find the string of text in the version.txt file
			if(appVersion<Double.parseDouble(currentVersion)) { //Checks if the version number on the github repository is greater then the program version
				return false;
			}else {
				return true;
			}
		}catch(Exception e) {
			e.printStackTrace();
			System.exit(1);
			return false;
		}
	}
/**
	 * Checks a text file stored on my github repository and gets the current version number and checks if the program version is less then or equal to the newest version
	 * @param appVersion A variable stored in the main class of the program that has the current program version
	 * @return False is needs updating or true if up to date
	 */
Checks a text file stored on my github repository and gets the current version number and checks if the program version is less then or equal to the newest version
@param appVersion A variable stored in the main class of the program that has the current program version
@return False is needs updating or true if up to date
Checks a text file stored on my github repository and gets the current version number and checks if the program version is less then or equal to the newest version @param appVersion A variable stored in the main class of the program that has the current program version @return False is needs updating or true if up to date
public boolean upToDate(double appVersion) {
		try{
			Document doc = Jsoup.connect("https://github.com/jnstockley/AddressBookREST/blob/master/Version.txt").get(); 
			String currentVersion = doc.select("table").first().text(); 
			if(appVersion<Double.parseDouble(currentVersion)) { 
				return false;
			}else {
				return true;
			}
		}catch(Exception e) {
			e.printStackTrace();
			System.exit(1);
			return false;
		}
	}
public boolean upToDate ( double appVersion ) { try { Document doc = Jsoup . connect ( "https://github.com/jnstockley/AddressBookREST/blob/master/Version.txt" ) . get ( ) ; String currentVersion = doc . select ( "table" ) . first ( ) . text ( ) ; if ( appVersion < Double . parseDouble ( currentVersion ) ) { return false ; } else { return true ; } } catch ( Exception e ) { e . printStackTrace ( ) ; System . exit ( 1 ) ; return false ; } }
Checks a text file stored on my github repository and gets the current version number and checks if the program version is less then or equal to the newest version
 @param appVersion A variable stored in the main class of the program that has the current program version
 @return False is needs updating or true if up to date
Checks a text file stored on my github repository and gets the current version number and checks if the program version is less then or equal to the newest version @param appVersion A variable stored in the main class of the program that has the current program version @return False is needs updating or true if up to date
//The URL to where the version text file is stored //Find the string of text in the version.txt file //Checks if the version number on the github repository is greater then the program version