That worked. Thanks.
Type: Posts; User: Skybear
That worked. Thanks.
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...
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
I figured out what I was doing wrong. Thanks for your time.
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...
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...
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."...
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...
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...
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...
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!
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.
...
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:...
What is a good online dictionary for Java terms?
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!
What is a good online dictionary for Java terms?
Even after it's only been compiled?
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...
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...
-------------
How do I name the file?
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...
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...
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...