Java count that replaces every number divisible by 3 to hoppity, and every number divisible by 5 to hop
<p>Java count that replaces every number divisible by 3 to hoppity, and every number divisible by 5 to hop. </p>

<pre><code>public class Hoppity {

     public static void main(String[] args)
   {
      int count = 1;

      while(count &lt;= 25) {
         System.out.println(count);
         count++;
      }

      if (count % 3==0) {
         System.out.println("Hop");
      }
      else if (count % 5==0) {
         System.out.println("Hoppity");
      }


   }
}
</code></pre>