Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

Chris Rutkowski

Greenhorn
+ Follow
since Jun 26, 2006
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 Chris Rutkowski

to the best of my knowledge, there is no built-in Oracle function to do what youre describing
15 years ago
The Muffin Man was a no-show as well? I thought he lived in the same neighborhood as the Doughboy, down on Drury Lane?
15 years ago
To everyone: what are your favorite questions you've been asked in a job interview?

I remember one interview where it was a lot of typical back and forth about my experience, etc, and then out of nowhere, the guy asks, "Why are manhole covers round?" (So they can't fall into their own hole)

After that, his next question was a brainteaser: "If you have 9 identical coins, with one coin slightly heavier than any other coin, and you have a balance scale, how can you find the heavy coin using only two measurements on the scale?" (Separate them into 3 piles of 3 each, compare two piles. If they're the same, the heavy coin is in the pile you didn't weigh, if not, it's in whichever pile is heavier. Separate the heavy pile and compare 2 of the 3 coins, using the same idea to find the heavy coin.)
15 years ago
Hello,

I'm new to struts and have often been running into issues getting things to display correctly. Here's another instance of this.

I have a HashMap which contains Strings as keys, and ArrayLists as values. For example:

I'm iterating over a separate collection which will give me one of the key values in the previous Map. For each of these elements, I would like to display the correct ArrayList inside a dropdown box. For example, if the outside collection returns "%", I want to display a dropdown box containing "#" and "%". Can anyone help me with this?
15 years ago
What if the IP address is assigned using DHCP? Then it wouldn't necessarily be unique. Can that cause problems?
15 years ago

Originally posted by Ernest Friedman-Hill:


No, actually. They're perfectly lovely characters, essential to many languages, but ASCII is a very restricted set of 127 specific characters that do not include umlauts, accents, etc -- only those characters used in the English language are included, along with control characters and punctuation (see here).

I'm not arguing that applications that only accept ASCII are appropriate in Java -- they're certainly not. I'm just being pedantic about our terms.



Thanks for the info, Ernest. My mistake.
15 years ago
"A with ^ on top or two dots on top", and other characters like them, are prefectly legal ASCII characters. On a normal U.S. keyboard they can only be typed by using ALT and then a number combination on the number pad, but many foreign keyboards are set up differently and if a language uses these characters, they have their own key just like any other letter. ANY printable character has an associated ASCII value.
15 years ago
What if the HashMap was contained in an ArrayList? How would you iterate through the ArrayList, and then iterate through each HashMap inside it?



What's wrong with this code?
15 years ago