« first day (3542 days earlier)      last day (1385 days later) » 

5:39 AM
reads a book
 
Hello!
 
@Hedy Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
 
 
5 hours later…
dhS
12:02 PM
Hi
have a question
 
dhS
12:40 PM
?
 
Zoe
also, this is not a help desk, so no one is obligated to answer
 
dhS
i have addFlashAttributes which i need to show on jsp page
but while i show it i am unable to show it as my other tab is show by default on page loading
 
dhS
12:59 PM
code is here
message is the addflashattribute which is not working properly
the method in controller is as bit.ly/2YZSTgN
 
Zoe
6 messages moved to Trash can
3 messages moved to Trash can
 
dhS
;(
 
1:18 PM
Happy America Day, Java!
 
 
2 hours later…
3:01 PM
Hi. I have a simple question to ask. Is the time complexity to perform put, get or remove operation on a HashMap<String,Object> O(S)?
 
@jatin Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
 
where S is the length of the stirng
 
Zoe
215
A: HashMap get/put complexity

Jon SkeetIt depends on many things. It's usually O(1), with a decent hash which itself is constant time... but you could have a hash which takes a long time to compute, and if there are multiple items in the hash map which return the same hash code, get will have to iterate over them calling equals on eac...

 
Sorry I guess my question wasn't clear enough. Even in the best case scenario (each bucket contains just one entry), when we are using Stirng as a key it would take O(S) for all the operations right?
Because for all the operations it has to find the key. After comparing the hashcodes, if a match is found, jvm compares the underneath object as well whilch will take O(S) in case of a string. Am I right?
 
 
1 hour later…
4:39 PM
o/
 
\o
 
 
1 hour later…
5:46 PM
Does anyone has running OPC UA connector in Java?
 
@Pankaj Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
 
6:42 PM
@jatin Yes I think so.
That's assuming String.equals runs in O(n) time, which I can only assume it does.
 
String equals is extremely fast tho
 
It could implement certain short circuiting operations such as checking the length, but it has to individually compare each character to assert equality. There's no way around it.
@Wietlol "Extremely fast" is a relative phrase.
 
it does a length check
but then it is a byte array comparison, which is so fast, even an O(log2(n)) solution would require strings of >50MB to reach a point where they become faster
 
6:57 PM
Mmm
 
Thanks Michael!
and wietlol
Appreciate it
 
7:36 PM
Hi all! Could you recommend me some opensource/free Java Obfuscator?
 
@writ3it Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
 

« first day (3542 days earlier)      last day (1385 days later) »