Stephen Potter wrote:// variables
String name;
String make;
Andrew Fielden wrote:I get hired at a senior level because of my years of experience and age.
Mark Raphael Qt wrote:
Dave Tolls wrote:What do you think the replace method call does?
The documentation might help you:
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html#replace(char,char)
Its more complicated than that, or I would not have asked. Does anyone have the patience please to explain why the two different String objects are not modified using the replace method please?
Krystian Wie wrote:You declare array Popcorn and method? How?
Paul Clapham wrote:No, really, a perfect hash function can only be constructed if you know all of the keys in advance. Then the function is constructed so that it maps each of the N keys to each of a set of N distinct integers.
Campbell Ritchie wrote:I thought put() runs in amortised constant time.