title: illegal start of type with catch
body: <p>So i am writing some code for a rss program and i can't find the problem in my code. i have 4 problems and when i look at the video i was following it looks the exact same. please help me. Thank you in advance. Here are the errors,</p>
  
  <pre><code>Main.java:27: error: illegal start of type
      } catch (MalformedURLException ue) {
        ^
  Main.java:29: error: illegal start of type
      } catch (IOException ioe) {
        ^
  Main.java:32: error: illegal start of type
      return null;
      ^
  Main.java:32: error: ';' expected
      return null;
            ^
  Main.java:35: error: class, interface, or enum expected
  }
  ^
  5 errors
  </code></pre>
  
  <p>I have researched on stack over flow on several different threads but none of the information helped. I removed curly brackets, added them, added semi-colons, Nothing worked</p>
  
  <pre><code>     import java.io.*;
  import java.net.*;
  public class RSSReader {
      public static void Main(String[] args) {
      System.out.printIn(ReadRSS("https://www.oracle.com/technetwork/topics/newtojava/overview/index.html/pageslug?format=rss"));
  
      }
  
      public static String readRSS(String urlAddress) {
  
         URL rssUrl = new URL(urlAddress);
         BufferedReader in = new BufferedReader(new InputStreamReader(rssUrl.openStream()));
         String sourceCode = "";
         String line;
         while((line = in.readLine())!=null) {
             if (line.contains("&lt;title&gt;")) {
                 int firstPos = line.indexOf("&lt;title&gt;");
                 String temp = line.substring(firstPos);
                 temp = temp.replace("&lt;title&gt;", "");
                 int lastPos = temp.indexOf("&lt;/title&gt;");
                 temp = temp.substring(0, lastPos);
                 sourceCode += temp+"\n";
             }
         }
         in.close();
        return sourceCode;
      } catch (MalformedURLException ue) {
          System.out.printIn("Malformed URL");
      } catch (IOException ioe) {
          System.out.printIn("Something went wrong reading the contents");
      }
      return null;
  
      }
  }
  </code></pre>