Java String not storing same value when assigned to Scanner NextLine()
How do I compare strings in Java?
I get the point of having a minimum reputation to use the new chat feature. However, I was hoping my 2K reputation from Stack Overflow would be enough - but it looks like I need to acquire 20 rep here on Meta Stack Exchange.  So my question is - should this restriction be moved? Why do you need explicitly have the "self" argument in a Python method? Callback animation to begin only after ALL children have finished animating He called her, emailed her, texted her, tweeted her—all to no use.   Strictly speaking, I would need to write texted her and tweeted her, but I'm omitting and to convey a rhythm and sense of urgency. What do you call this kind of construction, and is it accepted grammar (at least for creative writing, if not in an academic context)? made me think about the movie versions of the 7th book.  In Deathly Hallows Part II      Voldemort has Nagini attack Snape because Voldy thinks that Snape has the Elder Wand's allegiance. We know that Snape didn't actually have the allegiance, Draco did (and by then Harry did) and his plan had failed.   But if Voldy's plan had succeeded with Snape, would he have gotten allegiance?      Since voldemort didn't kill Snape, Nagini did... This is one of the possible ways I come out:  struct RetrieveKey {     template &lt;typename T&gt;     typename T::first_type operator()(T keyValuePair) const     {         return keyValuePair.first;     } };  map&lt;int, int&gt; m; vector&lt;int&gt; keys;  // Retrieve all keys transform(m.begin(), m.end(), back_inserter(keys), RetrieveKey());  // Dump all keys copy(keys.begin(), keys.end(), ostream_iterator&lt;int&gt;(cout, "\n"));   Of course, we can also retrieve all values from the map by defining another functor RetrieveValues.  Is there any other way to achieve this easily? (I'm always wondering why std::map does not include a member function for us to do so.) Question about arithmetic–geometric mean We have two sequences: $$a_{n+1}=\sqrt{a_nb_n}$$ $$b_{n+1}=\frac{a_n+b_n}{2}$$ I need to prove that those are making Cantor's Lemma.(At the end I shold get that: $\lim_{n\to \infty}a_n=\lim_{n\to \infty}b_n$ by Cantor's Lemma)  Any ideas how?  Thank you. How can the Anomalous Expansion of Water from 4$^\circ$C to 0$^\circ$C be explained with reference to subatomic particles? What is the maximum convergent $x$ in the power tower $x^{x^{x^{x\cdots}}}$? In the power tower $x^{x^{x^{x\cdots}}}$ where there is an infinite stack of $x$'s, what is the maximum convergent number? I know the answer by playing with the form $x^y=y$ and using Mathematica, but I don't know how to solve this by hand. Will I miss anything by watching Dragon Ball Z Kai instead of the other series? I've read that Dragon Ball Z Kai is an HD remaster and recut of Dragon Ball and Dragon Ball Z. However, Kai has  while Dragon Ball has  and Z has .  If I watch only Dragon Ball Z Kai, do I miss anything I would get by watching the other two series? And is anything censored in Kai that is not censored in the others? Can every even integer be expressed as the difference of two primes? Can every even integer be expressed as the difference of two primes? If so, is there any elementary proof? Soundness of a rule of a proof system with respect to the truth tables? I have the following question: "Explain the concept of the soundness of a rule of a proof system with respect to the truth tables"  Would it be correct to state the following:  "A rule of a proof system is sound with respect to the truth tables iff the conditions of the rules (requirements of the rule) ensure that the final formula will behave according to it's intended truth table."?  This is a question in a practice exam, and I can not find a specific mentioning so far, by scanning Google and Proof Wiki.  What would the correct answer be?  Thank you. Has Wonder Woman ever killed a mortal in anger? It's said that if  is spared in  quest, he remains in the Dawnstar sanctuary and can be later hired as a follower. Well I did just that and I can't find him anywhere. Where exactly is he? Does he disappear and only reappear after some other moment in the game? A high school Olympiad problem How to start a GUI software on a remote Linux PC via SSH Sometimes I need to start XMBC media player or other GUI software a one of my PC (small Xubuntu PC used as a media center).  Usually I do this starting a X11vnc server on the remote PC via SSH and than connecting with an Xvnc client to the Xfce desktop.  Is there a way to start a GUI software on a remote Linux PC via SSH?  Thanks! Polygon label repeated for each tile How many times can American Tourist re-enter UK in same 6 month period? Why does my water pressure fluctuate? What is the difference between 'su -' , 'sudo bash' and 'sudo sh'? I would like to know what is the difference between    su - sudo bash sudo sh   I cannot login as root while doing su - because I do not have the root password - I mean I have my user password with which I can sudo "command"  but this password does not work for su - I can log in as root with sudo bash with my user password and I can login while doing sudo sh but then I get a command prompt in this form #