title: Brick issue in JAVA
body: <p>Given a exercise to do in Java, and haven't got a clue how to do it:</p>
  
  <p>"We want to make a row of bricks that is X inches long, we have a number of small bricks (1 inch long) to be entered by the user, and a number of big bricks (5 inches long) to also be entered by the user. "</p>
  
  <p>I have got as far as determining the length of the goal and then the numbers of each brick (stored as int's), and taking the total length of the amount of bricks given (ie smallbrick * 1, and bigbrick * determine if it possible to make the goal (X inches) using the number of entered bricks.5) and whilst I know what do do in words, I have no idea how to convert this into code</p>
  
  <p>Code Below so far:</p>
  
  <pre><code>import java.util.Scanner; 
  public class BrickMan {
  
      public static void main(String[] args) {
          Scanner kb = new Scanner(System.in); 
          System.out.println("How Large is the Goal (In Inches)? "); 
          int goal = kb.nextInt(); 
          System.out.println("How Many Big Bricks Do You Have? "); 
          int bgbrk = kb.nextInt(); 
          System.out.println("How Many Small Bricks Do You Have? "); 
          int smlbrk = kb.nextInt(); 
          byte smlbrklen = 1; 
          byte bgbrklen = 5; 
          int ttlbgbrk = bgbrklen * bgbrk; 
          int ttlsmlbrk = smlbrklen * smlbrk; 
  </code></pre>
  
  <p>Thank you</p>