<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Can't figure out my error' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Can't figure out my error' posted on the 'Java' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 20:07:16 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 20:07:16 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Can't figure out my error</title>
      <link>http://www.programmersheaven.com/mb/java/428590/428590/cant-figure-out-my-error/</link>
      <description>So I've done three different programs involving if statements and I can't figure out why I keep getting an error message "one or more projects are compiled with errors" on any of the programs.  I've tested all three and each scenario and if i bypass the error they all run correctly.  Here is one of the programs.  Any help would be greatly appreciated thanks! &lt;br /&gt;
&lt;br /&gt;
class Movies&lt;br /&gt;
{&lt;br /&gt;
    public static void main (String []args)&lt;br /&gt;
    {&lt;br /&gt;
             &lt;br /&gt;
    Scanner scan = new Scanner(System.in);&lt;br /&gt;
    &lt;br /&gt;
    int age, time;&lt;br /&gt;
    double rate;&lt;br /&gt;
    final double matineeChildren = 2.00;&lt;br /&gt;
    final double regularChildren = 4.00;&lt;br /&gt;
    final double matineeAdult = 5.00;&lt;br /&gt;
    final double regularAdult = 8.00;&lt;br /&gt;
    &lt;br /&gt;
    System.out.println("How old are you? ");&lt;br /&gt;
    age = scan.nextInt();&lt;br /&gt;
    &lt;br /&gt;
    System.out.println("What time is it? ");&lt;br /&gt;
    time = scan.nextInt();&lt;br /&gt;
    &lt;br /&gt;
    if (age &amp;lt; 12)&lt;br /&gt;
    {&lt;br /&gt;
        if (time &amp;lt; 1630)&lt;br /&gt;
            rate = matineeChildren;&lt;br /&gt;
        else&lt;br /&gt;
            rate = regularChildren;&lt;br /&gt;
           &lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    else &lt;br /&gt;
    {&lt;br /&gt;
        if (time &amp;lt; 1630)&lt;br /&gt;
            rate = matineeAdult;&lt;br /&gt;
        else&lt;br /&gt;
            rate = regularAdult;&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    System.out.println("Your rate is " + rate);&lt;br /&gt;
        &lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/428590/428590/cant-figure-out-my-error/</guid>
      <pubDate>Fri, 25 May 2012 23:02:42 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Can't figure out my error</title>
      <link>http://www.programmersheaven.com/mb/java/428590/428593/re-cant-figure-out-my-error/#428593</link>
      <description>Your program seems to be fine. Are you using and IDE, like eclipse? If so, my guess is there are errors in programs in other projects. Try compiling this java code alone at command prompt and run it. You won't see the error, which would imply that this program is fine.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/428590/428593/re-cant-figure-out-my-error/#428593</guid>
      <pubDate>Sat, 26 May 2012 09:13:53 -0700</pubDate>
      <category>Java</category>
    </item>
  </channel>
</rss>