public class Solution {
    public static void main(String[] args) throws IOException {
        try {
            URL url = new URL("https://javarush.com/api/1.0/rest/projects");
            InputStream input = url.openStream();
            byte[] buffer = input.readAllBytes();
            for (byte text : buffer) {
                System.out.print((char) text);
            }

        } catch (Exception exc) {
            exc.printStackTrace();
        }
    }
}