My program is using the following code  String mobile=""; if(mobile!="") System.out.println("++++++"); System.out.println("------");   But if statement always set true. how it is possible? how to correct the code to get false for if condition?
I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?
It seems to me that the terms "Teaching Assistant" and "Instructor" refer to a variety of positions. At some places, a teaching assistant is responsible for things like helping the actual lecturer by handing out papers, grading homework, etc., and instructors hold recitation sessions.  At other places, I saw the term "instructor" referring to the lecturer giving the course, while a teaching assistant is the person doing anything else (recitations, grading etc.).  Is there some widely accepted definition of the two positions?  For context: The question arose because I wasn't sure whether I'm using the correct terms in my CV -- I am a math graduate student, and I would like to make a distinction between jobs in which I only graded course assignments/final exams, and courses in which I held recitation classes* (and also participated in grading the final exams). Is it OK to use "Instructor" for the latter? What should the former be referred to as?  *In the course I'm currently teaching, the recitations are planned and written by the ones giving them (without the professors' supervision). Also, the people giving the recitations are not necessarily grad students (some already hold a PhD). I'm elaborating on that because from what I've seen, some of it could be relevant for the definition of the job. How do I do a search in File Explorer that includes subfolders of zip archives? In File Explorer, I can enter search terms in the upper-right search box to search the current folder and all subfolders. I can also navigate the folder tree of zip archives like any other folders. However, if I want my searches to include files in a zip archive I have to navigate to the specific folder in the zip archive where the file is located. My searches never include files in zip archives if I'm not in the archive, and when I am in the archive my searches don't include files within the archive's subfolders.  Is there a way for my searches to include zip archive subfolders? With reference to:    I removed the Cortana packages from my running Windows 10 using the method posted by magicandre1981 and using  win6x_registry_tweak.   My question is how can I re-install Cortana (or for that matter any other package removed similarly)?  I have opened up the install.wim image (converted from a Win 10 install.esd file) and found Cortana in the system apps folder, but don't know how / what to use to re-install it.  Any help please? Recently I bought a new laptop that came with Windows 10 installed but not activated. I use both Windows 10 and Ubuntu 18.04, so I tried making a dual boot with a USB flash drive. It was recognized by the BIOS, I tried Try Ubuntu without installing and Install Ubuntu. With both options the PC freezes, and I need to press the power button. It's shown very fast some errors that are listed below:  [ 0.064522] ACPI Error: Method parse/execution failed \_SB.PCID.RPOB.PXSX, AE_NOT_FOUND (20170831/parse-550)  [ 0.066316] ACPI Error: [_SB.PCID.RPOB.PXSX], Namespace lookup failure, AE_NOT_FOUND (20170831/download2-191)  [ 0.066325] ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20170831/psobject-252)  [ 0.246232] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246248] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246260] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246272] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246285] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246297] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246310] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246322] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)   I'm using NVIDIA GTX 1050 Ti graphics card and Intel i7-8750H processor.  I talked to the customer support and they just said that my laptop might not be compatible with Ubuntu. I also tried Ubuntu 16.04, but there were no changes.  EDIT: Thanks a lot for all the answers, but unfortunatelly I returned the PC to the store, neither the technical support found a solution for the problem, they just said: "Our PCs are just able to work with Windows, anyother OS might work but without our warranty". Why does "unisex" mean both sexes? There are some places where men and women are segregated — for example public toilets and public swimming pool changing areas.  By this I mean, for example, that there are "Men's toilets" and "Ladies' toilets".  However, in some more cosmopolitan swimming baths, and other places, there are such things as unisex changing areas, or unisex toilets.  From my understanding uni- implies one, as in universe, unilateral or unicycle.  However when it comes to unisex, this means both sexes, so applies to two things.  How does uni- mean one in unisex? Does it mean one? Diagonalisation and characteristic polynomial Let $A\in M_3(\Bbb R)$ which is not a diagonal matrix. Let $P$ be a polynomial (in one variable), with real coefficients and of degree 3 such that $P(A) = 0$. Pick out the true statements:  a. $P = cP_A$ where $c \in\Bbb R$ and $P_A$ is the characteristic polynomial of $A$;  b. if $P$ has a complex root (i.e. a root with non-zero imaginary part), then $P = cP_A$, with $c$ and $P_A$ as above;  c. if $P$ has a complex root, then $A$ is diagonalizable over $\Bbb C$.  I guess b and c are true although I am unable to disprove a. Because A could satisfy $(X-A)$ but this is not a polynomial. Now if $P$ has a complex root, then its conjugate too is its root as the polynomial has  real coefficients. As we all know An odd degree polynomial has always a real root, what we have is three distinct roots. Since $A$ satisfies the polynomial the only difference between the characteristic polynomial and $P$ has to be a constant. I think it would be useful if we could join across databases in the data-explorer.  For example, I'd like to query up a list of questions that I had a hand in migrating away from SO, and see what percentage of them were subsequently closed or re-migrated.  I realise I could download the various data dumps and do this on my own machine, but it would be nice if it were allowed on the online version.  Is this possible/practical? On a crop sensor camera, e.g. Canon EOS 7D, what would be the best kit to travel with around Europe for a few weeks? My shooting style will focus on landscape, architecture, and general travel shots (of note would be my lack of interest for portraits).     Limit to around 1-3 lenses, and I prefer light ones.   Crop sensor camera chosen to save on weight over a full frame option. Question is open to all brands for general guidance, but I will be using a Canon body.   Cost is not a factor, I will rent the lenses I do not already own.   Quality is of paramount importance. I will not have a tripod.   I understand some may consider this subjective, but I do believe that for a crop sensor body, with weight as a consideration, and a limit to the amount of lenses, a true best kit can be determined. Why does everything spin? The origin of spin is some what a puzzle to me, everything spin from galaxies to planets to weather to electrons.  Where has all the angular momentum come from? Why is it so natural?  I was also thinking do photons spin? we always think of the wave as a standard 2d sin wave but could this rotate in 3d? What implications would this have?   And what about spacetime how does all the spinning effect?  This has always been avoided in all lectures and classes I ever went to. How is dark energy consistent with conservation of mass and energy? I initially thought that dark energy must in some way violate conservation of mass and energy since the component of the energy density of space that comes from dark energy is constant, and space is expanding. Therefore, as space expands the energy in the universe that comes from dark energy would increase. I presumed the source of this energy was not coming from the conversion of other types of energy to dark energy, so it must violate conservation.  I decided to Google this and came upon this article:    It says that dark energy does NOT violate conservation and quotes Carroll, Press, and Turner (1992):  "…the patch does negative work on its surroundings, because it has negative pressure. Assuming the patch expands adiabatically [i.e. without loss or gain of heat], one may equate this negative work to the increase of mass/energy of the patch. One thereby recovers the correct equation of state for dark energy: P = – ρ c2. So the mathematics is consistent."  Is there a way to explain this in layman's terms? (The blog attempted to do this, but it was very unclear to me.) More specifically, can you explain where my initial train of thought described above fails when I erroneously concluded that dark energy violates conservation?  Thank you. Coloring a black and white PDF graphic Is there any way to add pasta to soup without the pasta doubling in size and getting mushy in the fridge later.I've even tried putting uncooked pasta in with the same result. I created a custom counter 'rtaskno' and a command '\rtask' as following:  \newcounter{rtaskno} \newcommand{\rtask}{%    \stepcounter{rtaskno}%    \thertaskno}   I like to use them as following:  \section{Task \rtask. Blah Blah..}  \section{Task \rtask. Blah Blah..}  \section{Task \rtask. Blah Blah..}  \section{Task \rtask. Blah Blah..}   Later in the text, if I want to cross-reference 'Task 3', how can I do it? Where to put label? Subject/verb agreement when a title ends in a plural 1) "The book 'The Three Musketeers' is a wonderful example of..." Here we have a proper noun, a title that happens to end in a plural, and I have no sense that the verb should be plural. "Musketeers"/is seems proper/natural/correct, and 'are' not at all.   However, such certainty begins to wane in other examples: 2) "'The Heidi Chronicles' is a wonderful example of..." doesn't completely shake my confidence, but it moves the needle, at least a little bit. But, practically speaking, I wouldn't have a second thought about correcting a student who used 'are' instead of 'is'.  Here's the one that really bothers me: 3a) " 'The Basement Tapes' are a wonderful example of..." I don't think this sounds any less proper/natural/correct than 3b) " 'The Basement Tapes' is..." In fact, 3a seems less awkward than 3b.  Why? I have a problem with my touchpad; I can't scroll down with 2 fingers and I don't know why. I have searched on Google about my problem and I've found some answers but none of them don't work for me.  One solution I found was to go in System Settings -&gt; Mouse &amp; Touchpad -&gt; Touchpad and check the Two-finger scrolling, but I don't have that option.    Another solution was to try to reinstall, which also didn't work. Yet another solution was to go in Ubuntu Software Center, type synaptic and install the Synaptic Package Manager but that didn't work, either.      What can I do to be able to scroll with two fingers? Are there massless bosons at scales above electroweak scale? Spontaneous electroweak symmetry breaking (i.e. $SU(2)\times U(1)\to U(1)_{em}$ ) is at scale about 100 Gev. So, for , gauge bosons $Z$ &amp; $W$ have masses about 100 GeV. But before this spontaneous symmetry breaking ( i.e. Energy > 100 GeV) the symmetry $SU(2)\times U(1)$ is not broken, and therefore gauge bosons are massless.  The same thing happens when we go around energy about $10^{16}$ GeV, where we have the Grand Unification between electroweak and strong interactions, in some bigger group ($SU(5)$, $SO(10)$ or others). So theoretically we should find gauge bosons $X$ and $Y$ with masses about $10^{16}$ GeV after GUT symmetry breaks into the Standard Model gauge group $SU(3)\times SU(2)\times U(1)$, and we should find massless X and Y bosons at bigger energies (where GUT isn't broken).  So this is what happened in the early universe: when temperature decreased, spontaneous symmetry breaking happened and firstly $X$ &amp; $Y$ gauge bosons obtained mass and finally $Z$ &amp; $W$ bosons obtained mass.   Now, I ask: have I understood this correctly? In other words, if we make experiments at energy above the electroweak scale (100 GeV) we are where $SU(2)\times U(1)$ isn't broken and then we should (experimentally) find $SU(2)$ and $U(1)$ massless gauge bosons, i.e. $W^1$, $W^2$, $W^3$ and $B$ with zero mass? But this is strange, because if I remember well in LHC we have just make experiments at energy about 1 TeV, but we haven't discovered any massless gauge bosons. Are there consequences to stamps in my passport that are not from border control? Confidence interval around binomial estimate of 0 or 1 What is the best technique to calculate a confidence interval of a binomial experiment, if your estimate is that $p=0$ (or similarly $p=1$) and sample size is relatively small, for example $n=25$? In eevee, shadows are clipped by camera distance RedirectMatch and Query String Compare these two RedirectMatch's. The first doesn't work: RedirectMatch 302 ^/redirect\.php[?]page=(.+)$ http://somewhereelse.com/$1  Versus this, which will redirect to http://somewhereelse.com/?page=wherever: RedirectMatch 302 ^/redirect\.php([?]page=.+)?$ http://somewhereelse.com/$1  Does RedirectMatch only match the URI and not the query string? Apache's documentation is a bit vague in this area. What I'm trying to do is extract the page query parameter and redirect to another site using it. Is that possible with RedirectMatch or do I have to use RewriteCond + RewriteRule?