title: Julian day of the year in Java
body: <p>I have seen the "solution" at <a href="http://www.rgagnon.com/javadetails/java-0506.html" rel="noreferrer">http://www.rgagnon.com/javadetails/java-0506.html</a>, but it doesn't work correctly.  E.g. yesterday (June 8) should have been 159, but it said it was 245.</p>
  
  <p>So, does someone have a solution in Java for getting the current date's three digit Julian day (not Julian date - I need the day this year)?</p>
  
  <p>Thanks! Mark</p>