public class Update {
private static Blood main;
private static URLReader urlr;
public static String var1;
public static void update() {
if(main.CLIENT_VERSION == urlr.versionFromUrl) {
var1 = "Client is up to date.";
} else {
var1 = "New update is available.";
}
}
}
import java.net.*;
import java****.*;
public class URLReader {
public static String versionFromUrl;
public static void main(String[] args) throws Exception {
URL versionurl = new URL("http://pastehtml.com/view/d7dry29db.txt");
URLConnection vu = versionurl.openConnection();
BufferedReader in = new BufferedReader(new InputStreamReader(vu.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null) {
versionFromUrl = in.readLine();
System.out.println(inputLine);
}
in.close();
}
}

String parameters = "http://*******.com/blblbalbllal.txt"; String result = openUrl(parameters);
if (resul*****ntains("Version 0.1.4"))
{
System.out.println("Update was found!");
open a new gui with would you like to update.
}
if (!resul*****ntains("Version 0.1.4"))
{
System.out.println("Couldn't find an update");
return;
}
if (result == null)
{
System.out.println("Failed to connect to internet");
return;
}

if (inputLine.contains("Version 0.1.4"))
{
(whatever you want it to do)
}


0.1.4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id='view_iframe'>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title></title>
<link href="http://i.pastehtml.com/stylesheets/cache/all.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript">
window.google_analytics_uacct = "UA-83599-25";
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-83599-25']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script>
google.load("jquery", "1.7.1");
</script>
<script src="http://i.pastehtml.com/javascripts/cache/all.js" type="text/javascript"></script>
</head>
<body>
<div id="wrapper">
<iframe src="/raw/d7dry29db.txt" frameBorder="0"></iframe>
</div>
<div id="controls">
This page was viewed <b id="view_count">17</b> times and has <a target="_top" href="http://pastehtml.com/info/d7dry29db.txt#disqus_thread" class="disqus_comment_count" ></a>.
<span class='st_twitter' displayText=''></span>
<span class='st_facebook' displayText=''></span>
<span class='st_googleplus' displayText=''></span>
Sponsored by: <a href='http://search-logs.com/k/map%20of%20new%20york'>map of new york</a>
<div id="hosted_on">Hosted on</div>
<img alt="" class="rounded" src="http://i.pastehtml.com/images/design/iframe/rounded.png" />
<a href="/" class="logo" target="_top"><img alt="PasteHTML.com" src="http://i.pastehtml.com/images/design/iframe/logo.png" /></a>
</div>
<script>
// $("#view_count").smartupdater({
// url : "/api/counts/d7dry29db",
// minTimeout: 2000 // 5 seconds
// }, function (data) {
// $("#view_count").html(data);
// }
// );
</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "88ec1cfc-eb15-46e5-ae80-479238f71642"}); </script>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_url="http://pastehtml.com/info/d7dry29db.txt";
var disqus_shortname = 'pastehtmlpastehtml';
/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
</body>
</html>
:P