title: Raising a number to a power; Repeating words
body: <pre><code>import java.util.*;
  import javax.swing.*;
  public class ZhangIDK
  {
      public static void main (String[] args)
      {
          Scanner sc = new Scanner (System.in);
          System.out.println ("Please enter a number");
          int h = sc.nextInt();
          System.out.println ("Please enter another number");
          int i = sc.nextInt();
          System.out.println ("Please enter a string/word");
          String j = sc.nextLine();
          System.out.println ("Please enter a number");
          int k = sc.nextInt();
          average (1, 2, 3, 4, 5, 6, 7);
          least (1, 2, 3, 4, 5);
  
      }
  
      public static void average (int a, int b, int c, int d, int e, int f, int g)
      {
          int y = a + b + c + d + e + f + g;
          y/=7;
          System.out.println (y);
      }
  
      public static void least (int q, int r, int s, int t, int u)
      {
          int Smallestnumber = 100;
          int number = 1;
          if (number &lt; Smallestnumber)
          {
              Smallestnumber = number;
              number++;
          }
          System.out.println("The smallest number is" +Smallestnumber+ ".");
      }
  
      public static void power (int h, int i)
      {
  
      }
  
      public static void repeater (String j, int k)
      {
  
      }
  }
  </code></pre>
  
  <p>In our programming class, we're learning about methods.  Our teacher assigned us this thing where in the first method, we found the average of 7 (pre declared) numbers, in the second method, we found the smallest number of 5 (pre declared) numbers.  In the third method, we have to use a scanner to input two numbers and the first number is raised to the power of the second number.  Ex: 5, 2; the program should output 25 (5^2).  And finally, in the fourth method, we have to use a scanner again and enter a string and a number and the program should output the string the amount of the times as the number.  Ex:Bill, 3; the computer would output, Bill  Bill  Bill.</p>
  
  <p>I'm having trouble with the third and fourth methods. In my power method, when I enter, for example, 2 and 4, the program simply prints out the 2.  Also, when I try to do the fourth method, well thats flat out not working for some reason, though it looks like it should work fine.  One thing is that the part where its system.out.println the question "Please enter a work" and "Please enter a number" the two questions come together in one chunk so I have no way of entering a word.  Please HELP!</p>