If String is a class just like any other, how can it be initialized using double quotes?
While looking at online code samples, I have sometimes come across an assignment of a String constant to a String object via the use of the new operator.  For example:  String s; ... s = new String("Hello World");   This, of course, compared to  s = "Hello World";   I'm not familiar with this syntax and have no idea what the purpose or effect would be.  Since String constants typically get stored in the constant pool and then in whatever representation the JVM has for dealing with String constants, would anything even be allocated on the heap?
This baby-walking device is called a ([prefix]-)[name] by people from [location] How to Create a Vinyl Plastic Toy Shader? How can I make one of the vinyl toy plastic material like this?    Video: Can I successfully bake previously-frozen bread dough? I prefer my bread freshly baked (who doesn't?), but my mixer prefers kneading two loaves at a time to just kneading one. I have tried to freeze the second loaf before baking it, but when I thaw it, it does not rise well before baking. I've tried thawing it entirely in the refrigerator and then letting it rise on the counter, but that did not seem to work. Does anyone have a good technique or suggestion for this? How to close (kill) ssh ControlMaster connections manually Integer solutions for $x^2-y^3 = 23$. Difference between static class and singleton pattern? How can we distribute Shamir's secret sharing scheme shares without a dealer? Let's say $k$ users have shares to a $(k,n)$ secret sharing scheme, and they want to issue new shares. How can they do this without collecting the shares together?  In particular, no set of $k-1$ users (including the new users) should be able to learn the shared secret during or after the share generating process. There is also no trusted third party.  One way to do this is by doing a secure multiparty computation. Is there a way to accomplish the task without a general multiparty computation scheme? Unresolved external symbol on static class members Don't worry, I have written your name on the attendance sheet.   Or     Don't worry, I wrote your name on the attendance sheet. Ruby Style: How to check whether a nested hash element exists Exterior power "commutes" with direct sum I know that for vector spaces $V, W$ over a field $K$, we have the following identity :  $$ \bigoplus_{k=0}^n \left[ \Lambda^k(V) \otimes_K \Lambda^{n-k}(W) \right] \simeq \Lambda^n(V \oplus W) $$ which holds in a canonical way : for $0 \le k \le n$, the maps  $$ \Lambda^k(V) \times \Lambda^{n-k}(W) \to \Lambda^n(V \oplus W), \\ (v_1 \wedge\cdots \wedge v_k,w_{k+1} \wedge \cdots \wedge w_n) \mapsto (v_1 \wedge \cdots \wedge v_k) \wedge (w_{k+1} \wedge \cdots \wedge w_n) $$ factors through the tensor product's universal properties, which gives us a map $\varphi_k : \Lambda^k(V) \otimes_K \Lambda^{n-k}(W) \to \Lambda^n(V \oplus W)$, and since the category of $K$-modules has biproducts, we get a canonical map  $$ \varphi = \bigoplus_{k=0}^n \varphi_k : \bigoplus_{k=0}^n \left[ \Lambda^k(V) \otimes_K \Lambda^{n-k}(W) \right] \longrightarrow \Lambda^n(V \oplus W) $$  What if I replace $K$ by a (commutative ring with $1$) ring $A$? Does this map have a kernel? I know it is surjective (it suffices to "look at it", i.e generators of the codomain are obviously all hit by $\varphi$). I don't know if it helps, but I am working in integral domains. In the field case, this is obvious if $V$ and $W$ are finitely generated, since one can use dimension arguments. I wouldn't mind if the above identity held only in the finitely generated case either. If it worked in general it would be cool though.   Note that when trying to compute the inverse map with the universal property, there seems to be a problem... my guess would have been $$ (v_1 + w_1,\cdots,v_n + w_n) \mapsto \bigoplus_{k=0}^n (v_1 \wedge \cdots \wedge v_k) \otimes (w_{k+1} \wedge \cdots \wedge w_n) $$ and this map is obviously $A$-multilinear, but there is a problem with the alternating property ; I get some terms left. I'm guessing this is the wrong map... if there is one. Determining a tricky limit What is the limit of   $$\lim_{n \to \infty} \frac{\log n}{n^\delta}$$  where $\delta &gt; 0$? This came up to me while I was reading the question about Magical being using firearms in battle to raise their power (which I think I have a good answer for, but it's too long to fit in this question... and it would also be inappropriate).  Anyways, I was reading it and then the following thought came into my mind: If wizards decided to use guns on their battles (the ones agains Voldemort for instance), that would create that opening for much bigger battles than we see in the books (after all even a muggle can fire a gun, so lots of guns + the Imperio curse, and presto manifesto (is that racist? talking about wizards and all) you have yourself an army). Those kinds of battles, however, would most definitely not go unnoticed by the muggles - even though they wouldn't be able to link it to magic.  Well, that thought brought up my one and final question, which I bring forth to you guys. Is there any mention on how the Wizards and Witches viewed the two world wars (which had taken part by the time Harry got to Hogwarts, and which he had probably heard about in muggle school), and what was the Wizards' part in it? What about the cold war? Did the magical world even recognise the existence of weapons such as nukes, which could render all life on earth extinct?  EDIT  DVK has brought up an  regarding the connections between the Second World War and the wizarding world (more specifically, the wizard Grindelwald). Although it doesn't fully answer my question, it does help by showing that there was indeed some form of connection between the two world at the time. Post hoc test after ANOVA with repeated measures using R Addressing a former office-holder by that office's title When is it appropriate to use an "expired" honorific to address or refer to a person?   In the U.S., former state governors are occasionally referred to as "Governor So-and-so", although they have not held that office for several years. I see this happening most often when the former governor is actively campaigning for a new office (usually U.S. President), and my impression is that it's done only by someone with an interest in the campaign (for or against) rather than a (relatively) neutral party like a newspaper.  Certainly this could be used as a jab: in a political campaign for high office, addressing one's opponent by a former title — lower than one's own — could imply that the opponent is not qualified for the new job. It could also be used the other way around, to remind listeners that a candidate one supports used to hold an important title.  I'm curious whether there are formal rules for this in the U.S., or at least style or journalist guidelines, for various offices. Are ambassadors, for example, entitled to some sort of emeritus honorific? Conservation Of Angular Momentum of a falling stone I am currently stuck on the following question.   A stone is dropped from a stationary helicopter 500m above the ground, at the equator. How far from the point vertically below the helicopter does it land and in what direction? Solve this problem by conserving angular momentum.   My current interpretation is that when the stone falls in order to converse angular momentum the angular velocity must increase. This leads to the stone travelling to the east.   I equated the angular momentum at the start       L0=*(re+h)mVo  where re is radius of earth, h is the height above that, m is mass and Vo is inital velocity. To the angular momentum at any time  L=(re+h-1/2gt^2)m(Ve+Vo)  where the 1/2at^2 term comes from gravitational acceleration and Ve is the additional velocity.   I rearranged to find Ve and then integrated over the time it takes to fall the 500m in order to work out the extra distance the stone traveled. However, my answer is 1/2 what the answer should be. I have checked the maths and it seems to be fine. So I believe my set up is wrong. Any help would be appreciated. Accept Multiple Answers or Split Bounty among Several Users Often more than one person contributes to the community coming up with the final accepted answer to a question. However, it is only possible to accept a single answer. Restricting to one final answer does make sense for the sake of referencing that answer later, but in many cases that answer is the product of the input from several individuals. I would like to be able to decide how much of a bounty goes to different users, or some other mechanism to recognize the contribution of multiple users. Of course I could always upvote their previous answers, but this is really incorrect if their previous answers aren't the complete, final answer I've accepted.  What think you metaSOrs? I've seen this message several times whenever someone has a problem installing, upgrading or removing some piece of software, but I wonder, what does it mean, and more importantly, is possible to solve it?  (Reading database ... 81657 files and directories currently installed.)  Removing mongodb-10gen ...  arg: remove  invoke-rc.d: unknown initscript, /etc/init.d/mongodb not found.  dpkg: error processing mongodb-10gen (--remove):   subprocess installed pre-removal script returned error exit status 100  invoke-rc.d: unknown initscript, /etc/init.d/mongodb not found.  dpkg: error while cleaning up:   subprocess installed post-installation script returned error exit status 100  Errors were encountered while processing:   mongodb-10gen  E: Sub-process /usr/bin/dpkg returned an error code (1)   (the above is just an example, not my actual problem) Calculate $\sum_{k=1}^n (-1)^{k+1} \binom{n}{k}\frac{1}{k}$ polyglossia or bidi bug: [\d\.] gets inverted to [\.\d] After bidi was updated to v. 19.6 (2016-05-23), using at least one RTL language with polyglossia leads to number and following dot being inverted. Cf.  \documentclass{book} \usepackage{polyglossia} \setotherlanguage{hebrew} \begin{document} 6. \end{document}   with and without \setotherlanguage{hebrew}. Note that it is not necessary to actually use that language.  I do not know whether this is a bug in bidi or an incompatible change which polyglossia needs to adapt to. Because of this I have not opened an issue on polyglossia's github page. Sadly, bidi's contact information are outdated – the sourceforge referred to on CTAN is unused and the github page that is mentioned in the package's readme and PDF does not seem to exist any more either.  The problem might be something along the lines of     Does anybody have the previous version of bidi at hand?  TIA, Dario