I get exceptions when running this code. I want to parse the url which is an array of json objects:
package com.example.compsci_734t;
import java.io.BufferedRea
The error is explanatory itself:
java.lang.IllegalArgumentException: Illegal character in scheme at index 0
You need to remove the beginning space character in your URL:
private static String url = "http://redsox.tcs.auckland.ac.nz/734A/CSService.svc/courses";
Update:
After you've updated your question, now the problem seems in this line:
courses = json.getJSONArray(TAG_COURSES);
because you haven't initialized or set the value of courses that's why its giving NullPointerException error.