public static boolean getURLforClass(String s, int JDK) {
		HashMap<Integer, String> JDKversions = new HashMap<>();
		JDKversions.put(7, "http://docs.oracle.com/javase/7/docs/api/allclasses-frame.html");
		JDKversions.put(8, "http://download.java.net/jdk8/docs/api/allclasses-frame.html");
		URL u = null; 
        InputStream in = null;
		// Lots of autogen try catches.....
        // Condensed each of the catch statements into one line, 
        // they all print a stacktrace.
		try {
			u = new URL(JDKversions.get(JDK));
		} catch (MalformedURLException e) { e.printStackTrace(); }
        URLConnection uRLConnection = null;
		try {
			uRLConnection = u.openConnection();
		} catch (IOException e) { e.printStackTrace(); }               
        HttpURLConnection connection = (HttpURLConnection) uRLConnection;            
        connection.setDoOutput(true);
        connection.setDoInput(true);
		try {
			in = connection.getInputStream();
		} catch (IOException e) { e.printStackTrace(); }
		
		String line = null;
        BufferedReader br = new BufferedReader(new InputStreamReader(in));

		try {
			while ((line = br.readLine()) != null) {
				if(line.toLowerCase().contains(">" + s + "<")) { // Just to make sure
					return true; // I was going to make it return the URL for the
					// JD page for it,... but IDK how.
					// So many NPEs when I tried, I wish BeautifulSoup existed for Java :(
				}
			}
		} catch (IOException e) { e.printStackTrace(); }
		
        return false;
        
	}