Johannes Uhlmann

Greenhorn
+ Follow
since May 25, 2011
Johannes likes ...
Eclipse IDE C++ Java
Germany - Odenthal
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Johannes Uhlmann

Hi,

maybe you could try locating the file on the disk (using find or something like that), and then you will know its path?

Johannes
10 years ago
Hello,

i got a question regarding to the class hierarchy of Cell and the possibility to implement Comparable.

There are HSSFCell implements Cell and XSSFCell implements Cell. I wanted the compareTo functionality for both, hence my idea was to design a class like abstract class MyCell implements Cell, Comparable<Cell>. So i could implement compareTo but omit the Cell functions. The problem is that MyCell is not a Cell. Available options: 1.) always cast if a Cell is needed 2.) extend HSSFCell as well as XSSFCell and implement Comparable for both. Are there more options?

regards
Johannes

edit: ;-)

fred rosenberger wrote:Wim is correct. We not only don't want people to provide solutions, we actively delete them (as I have done). Our goal is to teach people to be programmers, and providing an answer does NOT do that.



I agree, sorry.
10 years ago
If you are are interested in a solution to your problem, here it is:



10 years ago


1.) You did it correctly, Array[0] is set to 1.

Additional info: When creating a new array like this



all "slots" [0] to [99] are initialized with 0 per default. Therefore you get an ArithmeticException (devision by zeró) at

10 years ago