why isnt this working package com.company; import java.util.Scanner;  public class Main {    public static void main(String[] args) {   // write your code here     Scanner scan = new Scanner(System.in);     System.out.println(&quot;enter year: &quot;);     int year = scan.nextInt();     int age = 0;     System.out.println(&quot;is your bday complete this year: ans 'Y/N'&quot;);     String bday= scan.nextLine();     scan.close();     if (bday==&quot;Y&quot;||bday==&quot;y&quot;){         age = 2021-year;     }else if(bday==&quot;N&quot;||bday==&quot;n&quot;){         age = 2020-year;     }else{         System.out.println(&quot;wrong input&quot;);     }     System.out.println(age);   } }
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?
When I boot my Windows 8 laptop (see details below), it displays this message:  Recovery  Your PC needs to be repaired  A required device isn't connected or can't be accessed.  Error code: 0xc0000225  [ A text saying I should use recovery tools on my installation media to fix the issue. ]  Press Enter to try again  Press F8 for Start-up Settings  Press Esc for UEFI Firmware Settings   If I press Enter or F8, the central part of the message changes to:  The application or operating system couldn't be loaded because a required file is missing or contains errors.  File: \Windows\system32\winload.efi  Error code: 0xc0000225   I don't have a recovery disk and I have owned this computer for a year with no problems. All I did prior to this error was unistall avast and restart. I can only access UEFI Firmware Settings and have no clue what to do from there. PLEASE HELP! I am working on a media project that contains little clips from movies and I wonder if there any way to avoid downloading all of the data instead only the specified parts of the movies? I'm asking about someone who's employed by a company and does different jobs (both a qualified and unqualified person). Who knows; maybe in English those two are two different words? What are they called in English?  All I know is a navvy but that usually means physical work.  Let me just try a few things here. These are just wild guesses, nothing more.    odd job man/worker   shiftman   (unskilled) labourer Serializing anonymous delegates in C# Cyclic Quadrilateral Problems PCA on correlation or covariance? What are the main differences between performing principal component analysis (PCA) on the correlation matrix and on the covariance matrix? Do they give the same results? Is there a catchall function somewhere that works well for sanitizing user input for SQL injection and XSS attacks, while still allowing certain types of HTML tags? How i recover my icloud username and password UK PLAB Visa Refusal due to unexplained bank deposits I had applied for a PLAB (Doctors) Visa for the UK to appear in PLAB test. I got refused on the basis of two recent large deposits in the bank statement I provided (my mothers). In reality, these are my own savings which I had deposited in her account to make it more strong. The only objection I got was that I must provide evidence for the source of these deposits. Other than this, I have previously travelled to the UK and USA as well as other parts of the world and my travel history is fine. Can someone please advise on how to proceed and re-apply? Downgrade SQL Server Enterprise Edition to SQL Server Standard Edition How to get more complete references Sometimes when I work I write something like  \begin{proposition} \label{my new result} ... \end{proposition} ... blah blah in Proposition \ref{my new result} blah...   but then I realize that the Proposition should actually become a Lemma. So I change it to  \begin{lemma} \label{my new result} ... \end{lemma}   The problem is that I then have to hunt down all the places where I wrote Proposition and change it to Lemma, which is tedious and error-prone. Well, we have search facilities in editors, so it is not really that complicated, but still it feels the wrong way to do this. I would be happier to write  \begin{proposition} \label{my new result} ... \end{proposition} ... blah blah in \labelNameFor{my new result} \ref{my new result} blah...   where labelNameFor is a hypothetical magic command which outputs "Proposition". Then I could forget about all the places where I reference the result and just make any changes I wish.  Is there a way to do something like this? As far as I understand the label/ref mechanism is simply based on counters, so I do not see a straightforward way, but maybe someone more clever and industrious then I am has given the problem some thought. Daily reputation cap doesn't account for reputation * loss* due to bounty awarded? There are many Q&amp;A's around this and the best explanation of daily cap model is from this answer that uses . It is an old answer but gives a good understanding.   My confusion is in applying this model to my situation yesterday.    On 31/12/2019, I awarded a bounty to , since it became eligible for bounty (2 days after posting it). Subsequently, I got more upvotes (including one accept) which exceeded the daily cap of 200. I am confused about this-loss of reputation due to bounty awarded by me preceeded subsequent gain of reputation so going by the bucket analogy, I should have my rep adjusted accordingly and those 6 up votes (at the bottom of table) should have been credited (rep should have been 177 instead of 117),  /reputation shows this   2 219845 (10)  1 219884 (2)  2 170717 (10)  2 219621 (10)  2 219845 (10) 2 219845 (10) 2 218537 (10)  2 219845 (10)  2 219892 (10)  2 219845 (10) 8 219821 (-100)  2 219845 (10)  2 219621 (10)  2 219845 (10)  2 219821 (10)  2 219845 (10)  2 219845 (10)  2 219845 (10)  2 219912 (10)  1 219912 (15)  2 219845 (10)  2 219845 (10)  2 219892 [10]  2 219845 [0]  2 219621 [0]  2 219845 [0]  2 219845 [0]  2 219845 [0]  2 219845 [0]  -- 2019-12-31 rep +117 = 27089 --   It is not the 6 votes I am bothered about, it is more about trying to correct my understanding  or have I stumbled upon an anomaly? Is stats maths or not?   Given that it's all numbers, mostly taught by maths departments and you get maths credits for it, I wonder whether people just mean it half-jokingly when they say it, like saying it's a minor part of maths, or just applied maths.   I wonder if something like statistics, where you can't build everything on basic axioms can be considered maths. For example, the $p$-value, which is a concept that arose to make sense of data, but it's not a logical consequence of more basic principles. Surjective, Injective, Bijective Functions from $\mathbb Z$ to itself I struggled with this over the weekend, and need to remap my mouse buttons. After the  of registering an account to book train tickets online using my British VISA card, I finally got into a position of being able to book a ticket, but what it appears to be telling me is that I'm only being added to a wait list, which I assume means my tickets aren't confirmed.  Can someone explain how the wait list works, and what my chances are of getting on the train successfully?    It currently says the wait list is 7 The train is the Mandor Express, from Delhi to Jodhpur on the 18th of Nov   Update: So I got the train! Although it didn't get confirmed until a few hours before it was due to leave. Why can't a CNAME record be used at the apex (aka root) of a domain? How to fix TikZ corners in 3D Am trying to draw a simple rectangle and there seems to be minor issue with two of the endpoints (f and d in the following). I tried line cap=rect as suggested by  but that did not seem to work.  The resulting image:    \documentclass{standalone} \setlength\PreviewBorder{5pt}%  \usepackage{tikz}  \newcommand*{\Width}{2.0} \newcommand*{\Height}{3.0} \newcommand*{\Depth}{1.0}  \begin{document} \begin{tikzpicture}%     \coordinate (A) at ( 0,       0,     \Depth);%     \coordinate (B) at (\Height,  0,     \Depth);%     \coordinate (C) at (\Height,  0,      0);%     \coordinate (D) at (\Height, \Width,  0);%     \coordinate (E) at ( 0,      \Width,  0);%     \coordinate (F) at ( 0,      \Width, \Depth);%     \coordinate (G) at (\Height, \Width, \Depth);%     \coordinate (H) at ( 0,       0,      0);%     %     \draw [blue, ultra thick,line cap=rect]%         (A) -- (B) -- (C) -- (D) -- (E) -- (F) -- cycle;%     \draw [blue, ultra thick,line cap=rect]%         (B) -- (G) -- (F) -- (E) -- (D) -- (G) -- cycle;%      \path (D)  [right] node {$d$};% Problem Point 1     \path (F)  [left ] node {$f$};% Problem Point 2 \end{tikzpicture}% \end{document}   This problem about  seems related, but I do not understand how to adapt that to my problem. I cannot stand the auto-completion of TeXStudio (formerly TexMakerX) regarding parentheses, braces, etc. I agree auto-completion is useful sometimes, but here it does just not work as I would like. How can I remove it completely?  Under configuration -&gt; completion nothing is checked. From where do I remove the auto-completion of these? I understand that in a lot of big-lab fields it is common for the principal investigator to append their name to a paper even if they did not write the paper, design the experiment, or collect data since they spend energy securing funding, and managing the whole lab. What about for small labs?  What are the requirements for a supervisor to be included as an author on a paper, as opposed to just appearing in the acknowledgements? If you are working on your own projects independently of your supervisor, but using funding provided by your supervisor (how does this change when the funding provides resources versus just your salary), are you suppose to add them as authors or just acknowledge the source of funding?