SolvedMy problems... Again... [JAVA]

Posts 1–2 of 2 · Page 1 of 1
My problems... Again... [JAVA]
Just displays nothing...
Code:
import java****.BufferedReader;
import java****.BufferedWriter;
import java****.FileWriter;
import java********Exception;
import java****.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;


public class Main {

	
	private static URL searchName;
	private static URLConnection connect;
	private static BufferedReader in;
	private BufferedWriter out;
	private static String inputLine;
	/**
	 * @param args
	 */
	public static void main(String[] args) 
	{
		while(true)
		{
		searcher("Something@yopmail.com", "works");
		}
	}
	private static void searcher(String name, String pass) {
		// TODO Auto-generated method stub
			try {
				searchName = new URL("https://realmofthemadgod.appspot.com/account/register?guid=324&newGUID="+name+"&ignore=7915&newPassword="+pass+"&isAgeVerified=1");
				connect = searchName.openConnection();
				in = new BufferedReader(new InputStreamReader(
						connect.getInputStream()));
				while ((inputLine = in.readLine()) != null) {
					if (inputLine.contains("<Success/>")) {
						System.out.println("Succes!");
					}
					if (inputLine.contains("<Error>Error.emailAlreadyUsed</Error>")) {
						System.out.println("Failed, email already used!!");
					}
				}
			} catch (MalformedURLException e) {
			} catch (IOException e) {
			}
	}

}
Nevermind... Password was too short, everything works now!
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us