Ines Mew

Greenhorn
+ Follow
since Feb 04, 2015
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 Ines Mew

Thank you Jeanne , Bear and Adam. Yes, I incorrectly closed <scrip> tag. One forward slash cost me 30 minutes of my life span.
Hi,
I am trying to learn Javascript.
I have a very very basic file. I do not understand why I am having a javascript error that says that my function is not defined.
As far as I can see it is defined in the <head>. Could any one help me figure out where the problem is in my file?

Hi,
I've read that "characters are just 16-bit unsigned integers under the hood. That
means you can assign a number literal, assuming it will fit into the unsigned 16-bit
range (65535 or less)".

I don't understand why char c=10 is legal but chars[i]=i raises 'Type mismatch: cannot convert from int to char'.
Could anyone explain it?Thank you

7 years ago
Hi Campbell, Dave, Knute

Thanks for your answers..I am still not clear on the whole topic of anonymous classes and generics but I feel like I am getting some progress. On a scale from 1 to 10 I went
from 0 to 2.. or maybe 1

How about this line:
1) new TreeMap(Comparator<T>) it creates an empty map ->this new map is ORDERED based on the rules I specified in
my Comparator -> then I take my original UNORDERED map and put it into this new map. Correct?

2) on line 56

I am trying to add another entry to my ORDERED map. I get NPE. Why?

7 years ago
Hi,
this is probably not a new question . This is someone's code that I am trying to grasp.
I do not get how is it possible to use
.

1) Comparator is an interface and I should not be able to create an instance of interface?
2) why should it return 1

7 years ago