How to test if the first letter of a passed String is equal to a char in java?
How do I compare strings in Java?
About 'start' and 'begin' Are 'begin' and 'start' interchangeable? Both &quot;This is a new start&quot; and &quot;This is a new beginning&quot; work, right? Then during games, they say &quot;Let's start&quot;, but I never heard &quot;Let's begin&quot;. So is there supposed to be a difference? And then one guy said this &quot;They could not begin to start a conversation&quot;. What is this supposed to mean? Is it correct? How do I install wine? Star vs Heart icon to represent save as a favourite I am working on a mobile app that involves the user saving a favourite location. I wanted to use an icon to represent that feature, but I'm not sure which one is better – a star or a heart icon.  Some say heart icon tends to increase the rate of productivity, and some say they are used to a star icon to 'save' or 'bookmark' something.  What do go you guys think? food safety regarding re freezing twice cooked chicken Docker ppa package for Ubuntu 19.10 Does someone knows if it exists some ppa packages source for the newest Ubuntu version 19.10 i had problem with that when i upgraded from Ubuntu 19.04 to 19.10 i didn't work? Meta sites in "Your Communities" display different reputation While using the top bar to navigate across communities, I noticed that the reputation displayed on meta sites on that list does not match the one of their corresponding main sites:    I have noticed on past situations that reputation gained takes a bit to "update" on the display on Meta sites (that is, if you gain rep on SO, for example, it will take some time for you to see your updated rep on MSO).  However, I have never noticed this behavior here, on the Sites List of the top bar. Furthermore, the "delay" here seems to be more severe, as the "outdated" rep showed is of several days ago (for example, I turned 3k on SO almost exactly a week ago, but the rep shown on MSO is still &lt;3k).  Any idea what could be causing this behavior?    Update: 2 months later this persists: my main site rep updates correctly but their corresponding meta rep remains the same as in the image above.     Update: As per Catija's  I removed the site (MSO) and put it back in, but it didn't update the rep.   However, after removing one site (TWP Meta), waiting at least a day, and then adding it back I see that although the reputations still don't match, the number displayed did changed a bit (previously 29,924 but now 33,112): Finding the confidence level and number of successes? Given that the sample size is $1500$ and the confidence interval of $p$ is $(0.050, 0.083)$. Find the confidence level and the number of successes.  I have so far that $E=Z_{1-\alpha/2}∗\sqrt{(p∗({p-1}))/n}$   Where $p$ is the center of the given interval, so $p = (0.050+0.083)/2 = 0.0665$  Also, the error $E$ as the difference of the midpoint and the endpoint of the interval so $E=0.0665-0.050=0.0165$   Plugging this into the equation I got that  $0.0165=Z_{1-\alpha/2}*\sqrt{((0.0665)(1-0.0665))/1500}$   Solving for $Z_{1-\alpha/2}$ gives $Z_{1-\alpha/2}=2.56$ and since $Z_{2.96} = 0.99$   $Z_{1-\alpha/2} = 0.01$  Is what I have so far right? If so, how do I find the number of successes? Is it just to multiply 0.99 by the number of trials?   So that way I would get $1500*0.99=1485$ ? Check a string to see if all characters are hexadecimal values My web application generates a lot of reports in formats like excel sheet, Csv(comma-separated values), fixed width columns, pdf format, html reports etc based on the parameters I select. There is a lot of data in the reports.  Are there any essential criteria for testing report generation that I may not have considered.  I know to test these things:   Data is correct Filters are used Output format is correct   What else is there? sum of double precision gives weird results Which is correct: "has died" or "died"? To me, using Present Perfect form means the event can occur again. So, saying      someone has died   may not be grammatically correct.  Also, I noticed (it might be just coincidence):     passed away   is used more often than     has passed away   Is using Present Perfect correct here? How to troubleshoot unwanted white spaces smartly? How to recover a deleted NTFS partition with data In .NET, which loop runs faster, 'for' or 'foreach'? In his lectures on String Theory (), Tong gives a proof of the Weyl anomaly, using equation $(4.36)$. It seems wrong to me.  Here he uses the OPE between the stress-energy tensors $T_{zz}T_{ww}$  obtained when trace vanishes, i.e. $T_{z \bar{z}} = 0$: this implies that they are holomorphic functions $T_{zz} = T_{zz}(z)$. But in this proof he starts from the fact that $T_{z \bar{z}} \neq 0$ (we want to proof this thing after all) and so $T_{zz}$ is not a holomorphic function anymore! In the OPE $(4.36)$ I should have also terms with $(\bar{z}- \bar{w})$.  I can't also understand why he uses in the rest of the proof only the singular term $(z-w)^{-4}$, neglecting the other ones $(z-w)^{-2}$, $(z-w)^{-1}$.  (The same proof is given in these lectures  on conformal field theory, equation $(6.9)$).  I'll be really thankful if someone could explain me this proof :) After a company has issued shares, why should it care if the value of the shares fluctuate? Since the shares are now publicly traded, if the value fluctuates, that is strictly a transaction between buyer and seller, none of whom are directly related to the company. E.g. if I sell X an iPhone for $100, why should I care if X is selling the iPhone to Y for 1 dollar or 1000 dollars? I have got my $100, so I need not bother. No? After finishing The Cayo Perico Heist, how long will it be set in hard mode? After I finished The Cayo Perico Heist, I tried setting up another heist in the Kosatka, and got this message :  The setup cost for The Cayo Perico Heist is $25000. Setting up now will set the heist to Hard Mode. Do you wish to proceed?  It seems that there is a cooldown period before the heist reverts to normal mode from hard mode. How long will it take before it reverts to normal mode? Also, does the cooldown timer run even if you're logged out of GTA Online? E.g., if I quit GTA Online just after finishing the heist, the next time I log back in, will I have to wait for the cooldown period to finish before it reverts to normal mode? For starters I am using this GREAT answer to achieve custom post types as well as a custom way to insert those post types into other pages, you can view that answer here:   I am running into a problem however when wordpress auto saves itself, it clears whatever metadata i have put into the forms.  EXAMPLE:  I select the 3 drop downs I want from my metabox and hit update.  The page reloads and the 3 choices are still selected.  In phpMyAdmin i can look up the metadata and see the array in place as it should be.  I now wait for wordpress to auto save.  As soon as this happens i can either refresh the page (not update, just refresh) and the metadata is lost, or i can look up the metadata in phpMyAdmin and it will display nothing (ie: its gone).  I'm guessing that this has something to do with needing to tie into another hook (some sorta auto update hook) or something, but even then it doesn't make sense that it would actually delete your metadata (rather than just not auto updating it).  Last note: If you copy and paste Mikes code into functions.php, you should be able to recreate my error (in wordpress 3.1) very easy. Can I award user with special bounty after accepting his anwer? I have a , and I haven't start a bounty for this question. After I got my answer I'd like to give a user a special bounty, because I consider his answer very helpful and it saved me a lot of time. I've already accepted the answer. Is there a way how can I give him some bounty?  Thank you Numbering in algorithmicx I have simple code:  \documentclass{article}  \usepackage{algorithm}  \usepackage{algpseudocode}  \begin{document}  \begin{algorithm}   \caption{Examples}\label{alg:Examples}   \begin{algorithmic}[1]   \State $X=45$   \State $X=45$   \State $X=45$   \State $X=45$   \State $X=45$    \end{algorithmic} \end{algorithm}          \end{document}     How to put a point after the number of the algorithm? I use chapters in report:  \documentclass[a4paper,12pt]{report}  \usepackage{algorithm}  \usepackage{algpseudocode}  \begin{document}  \chapter{Chapter 1}  \begin{equation} X_2=4 \end{equation}  \begin{algorithm}   \caption{Examples}\label{alg:Examples}   \begin{algorithmic}[1]   \State $X=45$   \State $X=45$   \State $X=45$   \State $X=45$   \State $X=45$    \end{algorithmic} \end{algorithm}  \end{document}     How to change the numbering to take into account the chapters?