Burkhard Hassel

Ranch Hand
+ Follow
since Aug 25, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Burkhard Hassel

Hi
Jesper, how did you do the images?


Done with POV-ray

Bu.
15 years ago
Howdy,

Nice Mandar, Turkey.

Perhaps you should use the "long count" to look what happened the last time.

Today (here still 25th of january) in the long count is:
12 K'in
19 Winal
16 Tun
0 K'atun
12 Bak'tun

or in mayan glyphs:


You see that the mayan long count is zero based.
From here to the last round would be
0 K'in
0 Winal
0 Tun
0 K'atun
12 Bak'tun

This should be then the last date of apocalypse. It was at the 20th september 1618.
End of the world? Well perhaps for some people in Bohemia: The Siege of Pilsen (or Plzeň) by the protestants started just the day before ;-)


Additional astro info:
While I'm writing this I can see planet venus just in the middle of my window...


Tools for mayan calendar calculation (python coded):
http://www.pauahtun.org/Calendar/tools.html

about the long count:
http://www.pauahtun.org/Calendar/longcount.html


Yours,
Bu.
15 years ago
1sailing boat
2zipper
3camera
4turntable
5(beer or wine) -> aspirin
6microscope
7the backspace button

and for Pat's strat: e minor!


Bu.
[ October 19, 2008: Message edited by: Burkhard Hassel ]
16 years ago
Hm,

Higgs-Hop.

How did they get all the holes into the cheese before they build the LHC?

Edit:
include a link for the doomsday clock on the large hadron collider.
[ August 13, 2008: Message edited by: Burkhard Hassel ]
16 years ago
Et voil�, la francophonie au ranch!

C'est cool.


Bu.
16 years ago
A net is a gaol for

Bu.
16 years ago

Originally posted by Ami Ambre:
Exmaple


When you cut a maple tree, then you have an exmaple.

Bu.
Howdy Xu,

welcome to the ranch!




perhaps you didn't get any answers to this posting by know because you typed:

conversion(reference types) behind <wantedType>



Maybe many people think you are speaking about generic types because you used the <> brackets.

You need explicit assignment conversion (or casting) when you have a variable of a super class, you know that the object behing it is of a sub class (so more specific) and you now need one of the more specific methods of the subclasses.

Further:

And how can compiler know that here is a ClassCastException?


The compiler does not know this. Exceptions are occuring when you run the program, not when you are compiling your code.

Example with fish:

This code compiles, but when you run it you'll see a class cast exception at the end.
Output is:
I'm swimming
And I have got 3 stripes
Exception in thread "main" java.lang.ClassCastException: test.Shark
at test.Main.main(Mai ....



And Xu also wrote:

i mean something like memory address changes..


You do not deal with memory adresses in Java. This is because Java is system independent, and memory adresses will be managed from the system dependent Java Virtual Machine. The adresses cannot be called from the code itself, because managing this adresses would be quite different on - say - a windows computer and a macintosh.


Hope that helped a bit.

Maybe have also a look on this campfire story:
http://www.javaranch.com/campfire/StoryPoly.jsp

Yours,
Bu.

-- edit: added link --
[ January 27, 2008: Message edited by: Burkhard Hassel ]
Howdy!

you can catch any class extending Throwable and Throwable itself, shouldn't be a problem.



Yours,
Bu.
Howdy!

Regarding hashCode there is no difference between the classes you mentioned: HashMap, Hashtable, HashSet and ArrayList.

All of these do not override the hashCode method because it is already overidden in their respective superclasses (AbstractMap, AbstractSet etc.).

Yours,
Bu.
...
But you are not right in calling it "errata".
Know why?
Howdy Vishwa,

you are right.

prints
[ , A, a]


Yours,
Bu.
Howdy ranchers,

option 3 is not correct. The method's name is "getMain" and not "getPain".
With line 1 changed to
c.setMain(main);
it would be less coupled.

You have a situation then where one object (coupler) returns an value(main, an int) of another object (test).
This value is not necessarily the pain-value of coupler. coupler is instantiated with this value, but after some other action (from some third class that uses test) the test-main value may have changed.


Yours,
Bu.
Congratulations, Naga!


Bu.
16 years ago
WFH
Howdy Suvarna Suvarna !

Please have a look into your private messages by clicking the "My Private Messages" link near the top of this page.

Yours,
Bu.
16 years ago