title: Exception in thread "main" java.util.UnknownFormatConversionException: Conversion = 'O'
body: <p>I'm sorry if this question has been posted, but I wasn't able to find an answer.</p>
  
  <p>I've been watching thenewboston tutorials on youtube for java, and now I'm getting this error:</p>
  
  <pre><code>Exception in thread "main" java.util.UnknownFormatConversionException: Conversion = 'O'
  at java.util.Formatter$FormatSpecifier.conversion(Unknown Source)
  at java.util.Formatter$FormatSpecifier.&lt;init&gt;(Unknown Source)
  at java.util.Formatter.parse(Unknown Source)
  at java.util.Formatter.format(Unknown Source)
  at java.util.Formatter.format(Unknown Source)
  at java.lang.String.format(Unknown Source)
  at tuna.toMilitary(tuna.java:14)
  at apples.main(apples.java:4)
  </code></pre>
  
  <p>I don't understand what I'm doing wrong, it's exactly as he has it (or at least I couldn't find anything different.</p>
  
  <pre><code>class apples{
  public static void main (String[] args) {
      tuna tunaObject = new tuna();
      System.out.println(tunaObject.toMilitary());
  }
  </code></pre>
  
  <hr>
  
  <pre><code>public class tuna {
  private int hour;
  private int minute;
  private int second;
  
  public void setTime(int h, int m, int s){
      hour = ((h&gt;=0 &amp;&amp; h&lt;24) ? h : 0);
      minute = ((m&gt;=0 &amp;&amp; m&lt;60) ? m : 0);
      second = ((s&gt;=0 &amp;&amp; s&lt;60) ? s : 0);
  
  }
  
  public String toMilitary(){
      return String.format("%O2d:%O2d:O2d", hour, minute, second );
  }
  </code></pre>
  
  <p>Thanks a lot. (I do know one "}" is missing in each block of code)</p>