Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!

Claude Rouleau

Greenhorn
+ Follow
since Oct 13, 2000
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Claude Rouleau

Evaluation happens left to right.
Operations are done with the precedence order.
i++ + i using i = 10 is first evaluate
1.- it evaluates the first left i by replacing it by 10
2.- then it increments i by 1
3.- it evaluates the next i by replacing it by 11
*.- the result is 21
i + i ++
again left to right,
1.- it evaluates the first i to be 10;
2.- then the next i still 10;
*.- it does complete the operation and the result is 20;
Note: the incrementation of i by ++ is lost;
Claude


[This message has been edited by Claude Rouleau (edited March 27, 2001).]
It depends on some other factors. Like how priorities are implemented in the specific plateform you are in. So, to say that "if the scheduler is willing to" is a kind of poetry to express the complexity made by the number of other factors.
This is only my little opinion.
Claude

[This message has been edited by Claude Rouleau (edited October 27, 2000).]
I will say that it is exact that you cannot garantee the order in wich listener will be called but
If you subclass a component (like Button) and in the constructor of the class that you are building you call the enableEvents method + you override the processActionEvent method of the component. The processActionEvent method that you provided will be called before any listener of this component.
Hope this help.

[This message has been edited by Claude Rouleau (edited October 25, 2000).]
When the method end at line 5 ( } ). Before that the String still have a reference in use.
Claude
I am revisiting RandomAccessFile and found that the argument for the seek method is a long (64 bytes integer). The documentation says that it is the offset position, measured in bytes from the beginning of the file.
Since there is no way to specify another starting point I concluded that the maximum lenght of a Random file is (2 power 63) -1.
Do I am right?
Claude
Thanks ! I have taken the time to review the answer and now I understand. I appreciate that you have took time to answer.
Merci
Claude
19 years ago
The actual example is in RBE book.
for (int i = 0; i < array.lenght; i++) {
// process first string
if (array[i].secondString == null) {
continue;
}
// process second string
}
I don't understand it and the code is not completed. Can someone complete the code? This will help me to understand.
Merci d'avance.
19 years ago

I beleive tha this is about "How java find a class" and the "CLASSPATH" environment variable.
See. if I have no CLASSPATH set and I try the following I get an error.
C:\test>javac imp.java
imp.java:2: Package test not found in import.
import test.*;

Then I set the CLASSPATH variable one level below the package name. I get no problem to compile.
C:\test>set classpath=C:\
C:\test>javac imp.java
C:\test>java test.pack
Note that you have to get the full name class variable (including package name).
Hope that this help.
Apart from this post. Nothing in the site is telling that the software was revised to reflect the actual Sun interface and behavior. There is also no publishing date.
So, ...
Claude