title: Calling a method three times the most basic way you can
body: <p>I want to know if there are basic ways to call a method multiple times. I am not allowed to use for, if, or else statements. I am suppose to write a method called test 1 and test 2, which calls the increase speed and decrease speed by 3 times. If anyone can offer me suggestions, I would appreciate it.</p>
  
  <p><strong>Requirements</strong> </p>
  
  <p>increaseSpeed. The increaseSpeed method should add 10 to the speed
  field each time it is called.</p>
  
  <p>reduceSpeed. The reduceSpeed method should subtract 10 from the speed
  field each time it is called.</p>
  
  <p>write a method called test1 that calls increaseSpeed three times.</p>
  
  <p>write a method called test2 that calls reduceSpeed three times.</p>
  
  <p>program: </p>
  
  <pre><code> public void increaseSpeed()
     {
        speed += 10;
     }
  
     public void reduceSpeed()
     {
        speed -= 5;
     }
     public void test1(){
  
     }
  
     public void test2(){
  
     }
  
  }
  </code></pre>