<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>Question of the Day - Languages and JVM category</title>
  <link>http://enigmastation.com:80/pebble/qotd/categories/Language/</link>
  <description>Interesting questions and answers on Java</description>
  <language>en</language>
  <copyright>Joseph Ottinger</copyright>
  <lastBuildDate>Wed, 03 Dec 2008 14:32:00 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  
  <item>
    <title>How do I get a stack trace in a String?</title>
    <link>http://enigmastation.com:80/pebble/qotd/2008/12/03/1228314720000.html</link>
    
      
      
        <description>
          It comes up every now and then: someone wants a stack trace in a String. They&#039;re probably wrong; if they&#039;re trying to analyze the stack trace, there are mechanisms in the Throwable to do that without creating a String and parsing it, but just in case... here&#039;s how you get a stack trace from an exception in a String.&lt;p&gt;&lt;a href=&#034;http://enigmastation.com:80/pebble/qotd/2008/12/03/1228314720000.html&#034;&gt;Read more...&lt;/a&gt;&lt;/p&gt;
        </description>
      
    
    
    
    <category>Languages and JVM</category>
    
    <comments>http://enigmastation.com:80/pebble/qotd/2008/12/03/1228314720000.html#comments</comments>
    <guid isPermaLink="true">http://enigmastation.com:80/pebble/qotd/2008/12/03/1228314720000.html</guid>
    <pubDate>Wed, 03 Dec 2008 14:32:00 GMT</pubDate>
  </item>
  
  <item>
    <title>Filtering characters from a Reader</title>
    <link>http://enigmastation.com:80/pebble/qotd/2008/09/11/1221150300000.html</link>
    
      
      
        <description>
          It&#039;s an occasionally legitimate question: &#034;How do I filter content from a Reader?&#034; There&#039;re related questions for Streams, too. Here&#039;s an example of a simple Reader class that shows how to remove specific characters from a Reader.&lt;p&gt;&lt;a href=&#034;http://enigmastation.com:80/pebble/qotd/2008/09/11/1221150300000.html&#034;&gt;Read more...&lt;/a&gt;&lt;/p&gt;
        </description>
      
    
    
    
    <category>Languages and JVM</category>
    
    <comments>http://enigmastation.com:80/pebble/qotd/2008/09/11/1221150300000.html#comments</comments>
    <guid isPermaLink="true">http://enigmastation.com:80/pebble/qotd/2008/09/11/1221150300000.html</guid>
    <pubDate>Thu, 11 Sep 2008 16:25:00 GMT</pubDate>
  </item>
  
  <item>
    <title>How do I parse or format dates? Dates are hard!</title>
    <link>http://enigmastation.com:80/pebble/qotd/2008/08/28/1219932960000.html</link>
    
      
      
        <description>
          Well, Barbie, dates are really pretty easy. Here&#039;s a class with a number of formatting and parsing examples.&lt;p&gt;&lt;a href=&#034;http://enigmastation.com:80/pebble/qotd/2008/08/28/1219932960000.html&#034;&gt;Read more...&lt;/a&gt;&lt;/p&gt;
        </description>
      
    
    
    
    <category>Languages and JVM</category>
    
    <comments>http://enigmastation.com:80/pebble/qotd/2008/08/28/1219932960000.html#comments</comments>
    <guid isPermaLink="true">http://enigmastation.com:80/pebble/qotd/2008/08/28/1219932960000.html</guid>
    <pubDate>Thu, 28 Aug 2008 14:16:00 GMT</pubDate>
  </item>
  
  <item>
    <title>How can I get all classes in a specific package?</title>
    <link>http://enigmastation.com:80/pebble/qotd/2008/08/28/1219923840000.html</link>
    
      
      
        <description>
          Every so often, we get &amp;quot;How do I get all classes in a specific package?&amp;quot; After all, IDEs do it, right? (You might want to inspect members for, say, a specific interface, or something like that.) There&#039;s usually no need to actually do this, but if you&#039;re interested, here&#039;s how.&lt;p&gt;&lt;a href=&#034;http://enigmastation.com:80/pebble/qotd/2008/08/28/1219923840000.html&#034;&gt;Read more...&lt;/a&gt;&lt;/p&gt;
        </description>
      
    
    
    
    <category>Languages and JVM</category>
    
    <comments>http://enigmastation.com:80/pebble/qotd/2008/08/28/1219923840000.html#comments</comments>
    <guid isPermaLink="true">http://enigmastation.com:80/pebble/qotd/2008/08/28/1219923840000.html</guid>
    <pubDate>Thu, 28 Aug 2008 11:44:00 GMT</pubDate>
  </item>
  
  <item>
    <title>I just don&#039;t get packages and the classpath!</title>
    <link>http://enigmastation.com:80/pebble/qotd/2008/08/27/1219877880000.html</link>
    
      
      
        <description>
          We hear it about twenty times a day, often (sadly) from the same set of people. Yes, I&#039;m talking about you, _____. The question should take the form of &amp;quot;how does Java use the classpath?&amp;quot; but often looks like &amp;quot;how should I set my classpath&amp;quot; and &amp;quot;how do packages work&amp;quot; and &amp;quot;I&#039;m stupid and my mommy doesn&#039;t like me, waaah help with classpath.&amp;quot;&lt;p&gt;&lt;a href=&#034;http://enigmastation.com:80/pebble/qotd/2008/08/27/1219877880000.html&#034;&gt;Read more...&lt;/a&gt;&lt;/p&gt;
        </description>
      
    
    
    
    <category>Languages and JVM</category>
    
    <comments>http://enigmastation.com:80/pebble/qotd/2008/08/27/1219877880000.html#comments</comments>
    <guid isPermaLink="true">http://enigmastation.com:80/pebble/qotd/2008/08/27/1219877880000.html</guid>
    <pubDate>Wed, 27 Aug 2008 22:58:00 GMT</pubDate>
  </item>
  
  <item>
    <title>Printing a stack trace to a String?</title>
    <link>http://enigmastation.com:80/pebble/qotd/2008/08/27/1219849320000.html</link>
    
      
      
        <description>
          A user on ##java asked &amp;quot;how to printTrackstrace to String,&amp;quot; and got an answer of&amp;nbsp; &amp;quot;e.getStackTrace() and concatenate each StackTraceElement.&amp;quot; Yeeeick. There not only has to be a better way, but there &lt;em&gt;is&lt;/em&gt; a better way.&lt;p&gt;&lt;a href=&#034;http://enigmastation.com:80/pebble/qotd/2008/08/27/1219849320000.html&#034;&gt;Read more...&lt;/a&gt;&lt;/p&gt;
        </description>
      
    
    
    
    <category>Languages and JVM</category>
    
    <comments>http://enigmastation.com:80/pebble/qotd/2008/08/27/1219849320000.html#comments</comments>
    <guid isPermaLink="true">http://enigmastation.com:80/pebble/qotd/2008/08/27/1219849320000.html</guid>
    <pubDate>Wed, 27 Aug 2008 15:02:00 GMT</pubDate>
  </item>
  
  <item>
    <title>Is Math.sqrt expensive?</title>
    <link>http://enigmastation.com:80/pebble/qotd/2008/08/27/1219844520000.html</link>
    
      
      
        <description>
          From ##java: &amp;quot;If I was factorising all the numbers up to 1000000, would it be worth checking all primes up to sqrt(n) or would it be quicker to just check all primes up to that number, my tutor told me that the sqrt() function is expensive.&amp;quot;&lt;p&gt;&lt;a href=&#034;http://enigmastation.com:80/pebble/qotd/2008/08/27/1219844520000.html&#034;&gt;Read more...&lt;/a&gt;&lt;/p&gt;
        </description>
      
    
    
    
    <category>Performance</category>
    
    <category>Languages and JVM</category>
    
    <comments>http://enigmastation.com:80/pebble/qotd/2008/08/27/1219844520000.html#comments</comments>
    <guid isPermaLink="true">http://enigmastation.com:80/pebble/qotd/2008/08/27/1219844520000.html</guid>
    <pubDate>Wed, 27 Aug 2008 13:42:00 GMT</pubDate>
  </item>
  
  </channel>
</rss>
