public void friends() {
    	HttpURLConnection conn = null;
    	URL url;
    	try {
	    	url = new URL("http://restletlab.appspot.com/users");
//	    	url = new URL("http://localhost:8888/users");
			conn = (HttpURLConnection) url.openConnection();
			conn.setDoOutput(true);
			conn.setRequestMethod("GET");
			conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
			conn.setRequestProperty("Accept", "application/json");
			if (conn.getResponseCode() != HttpURLConnection.HTTP_OK) {
				throw new RuntimeException("Failed : HTTP error code : " + conn.getResponseCode() + conn.getResponseMessage());
			}
			BufferedReader br = new BufferedReader(new InputStreamReader((conn.getInputStream())));
			String output;
			StringBuffer response = new StringBuffer();
			System.out.println("\nGET - " + conn.getResponseCode() + conn.getResponseMessage() + "\n");
			while ((output = br.readLine()) != null) {
				response.append(output);
				response.append('\r');
			}
			br.close();
		    
		    JSONArray array = new JSONArray(response.toString());
		    for (int i = 0; i < array.length(); i++) {
		        JSONObject row = array.getJSONObject(i);
		        if(!row.getString("username").equalsIgnoreCase(this.username)) {
		        	String theStatus = row.getBoolean("status") ? "Available" : "Not Available";
		        	System.out.println(row.getString("username") + " - " + theStatus);
		        }
		    }
	    } catch (MalformedURLException e) {
	    	e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} catch (JSONException e) {
			e.printStackTrace();
		} finally {
			if(conn != null) {
				conn.disconnect(); 
			}
		}    	
    }