View RSS Feed

Most Popular Blogs

  1. Homework help - Dice Roll

    by , 04-28-2013 at 01:03 AM
    Quote Originally Posted by Slick Java View Post
    Hi, I am having trouble with this program. The point of this program is to roll a dice, store dice values in an array and print out how much time the value has been occurred. The output should be like this:

    1 3

    4 1

    5 1

    2 1

    But I am getting this:

    1 3

    4 1

    5 1

    1 3

    2 1

    1 3


    I am trying to find a way to get
    ...
    Categories
    Uncategorized
  2. Help centering the square inside

    by , 09-14-2013 at 12:40 AM
    Quote Originally Posted by Messi5454 View Post
    I emailed the instructor my code and he said the only thing i have to do is center my inner square .
    i attached picture
    Attachment 5522

    Java Code:
    import java.awt.*;
    
    import javax.swing.*;
    
    
    // begining of the Gepmetry class
    // geometry class uses JFrame to draw the window and 
    // geometric shapes  
    public class Hw2  extends JFrame {
    
    //Variables to use for drawing 3 shapes.
    ...
    Categories
    Uncategorized
Page 4 of 4 FirstFirst ... 234