Search:

Type: Posts; User: Skybear

Search: Search took 0.08 seconds.

  1. Thread: Rectangles

    by Skybear
    Replies
    3
    Views
    1,161

    Re: Rectangles

    That worked. Thanks.
  2. Thread: Rectangles

    by Skybear
    Replies
    3
    Views
    1,161

    Rectangles

    I'm not sure why this program doesn't make a moving rectangle:


    public static void main(String[] args)
    {

    import java.awt.*;
    import javax.swing.*;

    public class Advertisement...
  3. Replies
    1
    Views
    1,029

    Trying to make a moving rectangle.

    I'm trying to create a randomly moving rectangle that has text. And I'm trying to make it obnoxious. lol. I'm very new to Java graphics, and Java in general, so I'd appreciate any advice.

    2104
  4. Replies
    6
    Views
    2,682

    Re: Missing class file

    I figured out what I was doing wrong. Thanks for your time.
  5. Replies
    6
    Views
    2,682

    Re: Missing class file

    I'm using jGrasp to do the programming, but I'm starting from a web page called "Practice-It!" (I'm working from a textbook called "Building Java Programs: A Back to Basics Approach.") I've attached...
  6. Replies
    6
    Views
    2,682

    Re: Missing class file

    Sorry about the formatting error, Norm. I think I have it fixed:

    Here's the complete error message:


    The following file is missing class or inner class files: "/Users/Mike/Java Chapter...
  7. Replies
    6
    Views
    2,682

    Missing class file

    After an unintended break, I'm back to learning Java.

    I'm having a problem debugging the following file. I keep getting the message: "The following file is missing class or inner class files."...
  8. Replies
    5
    Views
    1,524

    Re: Why does this work?

    Of course! Good explanation. I see now that what I was doing was that after i increased to 2, I was reading j = i, when I should have read j<=i, which in essence resets j back to 1 and allows it to...
  9. Replies
    5
    Views
    1,524

    Re: Why does this work?

    Oh yes, I understand the difference between print() and println(). But I don't see how there should be 20 asterisks. For example, initially the i=1, so j=1, one asterisk gets printed, and the println...
  10. Replies
    5
    Views
    1,524

    Why does this work?

    I understand how loops and nested loops work. But in the code below, I don't see why one * is printed on the first line, two on the second, etc., instead of just a column of *'s. I'm probably missing...
  11. Thread: Operators

    by Skybear
    Replies
    7
    Views
    1,386

    Re: Operators

    Thanks. I was entering Java and operators, but it never occurred to me to try just try that. Google is giving me a lot of C++ pages, so I'll look at those. Nice indeed! Thanks!
  12. Thread: Operators

    by Skybear
    Replies
    7
    Views
    1,386

    Re: Operators

    That's what I thought. But how is ++y different from y++? And --y from y--? I ask because in the example above, where int y=20, y-- should mean 20-1 = 19. But the book has the answer as being 20.
    ...
  13. Thread: Operators

    by Skybear
    Replies
    7
    Views
    1,386

    Re: Operators

    Thanks for the help. Here is an excerpt from the book I'm reading about operators and which doesn't seem to be explained by the Oracle Java tutorial. This is where my confusion comes from:...
  14. Thread: Dictionary

    by Skybear
    Replies
    2
    Views
    1,526

    Dictionary

    What is a good online dictionary for Java terms?
  15. Thread: Operators

    by Skybear
    Replies
    7
    Views
    1,386

    Operators

    I could use some help understanding operators. ++, --, +=, -=, *=, /=, and %=. There's something about them that I'm just not getting. I would really appreciate your assistance!
  16. Thread: Dictionary

    by Skybear
    Replies
    1
    Views
    1,471

    Dictionary

    What is a good online dictionary for Java terms?
  17. Thread: Platforms

    by Skybear
    Replies
    3
    Views
    963

    Re: Platforms

    Even after it's only been compiled?
  18. Thread: Platforms

    by Skybear
    Replies
    3
    Views
    963

    Platforms

    I've read that one of the reasons Java is so popular is that it's promoted as being platform independent. But wouldn't one just need to write one program for Windows, another for Mac, etc? It seems...
  19. Thread: Beginner code

    by Skybear
    Replies
    11
    Views
    1,415

    Re: Beginner code

    Thanks for the help. I talked to a teacher at a local community college. She recommended the book Building Java™ Programs: A Back to Basics Approach, 2/e It looks good. I'm going to use BlueJ for the...
  20. Thread: Beginner code

    by Skybear
    Replies
    11
    Views
    1,415

    Re: Beginner code

    -------------

    How do I name the file?
  21. Thread: Beginner code

    by Skybear
    Replies
    11
    Views
    1,415

    Re: Beginner code

    Yes, I am very much a beginner. I got the code from a book I bought: Building Java Programs: A Back to Basics Approach, 2nd edition
    by Stuart Reges and Marty Stepp.

    Also, I downloaded BlueJ. I...
  22. Thread: Beginner code

    by Skybear
    Replies
    11
    Views
    1,415

    Re: Beginner code

    Hi Norm. Here is the error message I received:
    xception in thread "main" java.lang.ExceptionInInitializerError
    Caused by: java.lang.RuntimeException: Uncompilable source code - class Hello is...
  23. Thread: Beginner code

    by Skybear
    Replies
    11
    Views
    1,415

    Beginner code

    Hi everyone,

    I'm just starting to learn Java. I copied the following program from a textbook, but it doesn't seem to work for some reason. I'd appreciate your help.

    Here's the code:


    public...
Results 1 to 23 of 23