Just comparing some behaviors accross different languages and in java (java 8) I have tried something and I got weird results: here I iterate over a small String array, and display the iterator along with the value (nothing fancy, we agree...). however when I change in the sysout concatenation between single quote ' ' and double quote &quot; &quot; the behavior is completely different. 1- displays the end result of the iteration (3 as I increment through the loop) and it seems that it calculates + 1 from the last iteration so in this case the end result is: 33Foo 34Bar 35Baz public static void main(String[] args) {      int y = 0;          String[] arr= {&quot;Foo&quot;, &quot;Bar&quot;, &quot;Baz&quot;};         for(int i = 0; i &lt; arr.length; i++) {              y++;         System.out.println(y +' '+ arr[i]);     }  }  while changing the above to double quotes:  public static void main(String[] args) {      int y = 0;          String[] arr= {&quot;Foo&quot;, &quot;Bar&quot;, &quot;Baz&quot;};         for(int i = 0; i &lt; arr.length; i++) {              y++;         System.out.println(y +&quot; &quot;+ arr[i]);     }  }  will have the expected result: 1 Foo 2 Bar 3 Baz Anyone knows why? Just interested to know the reason of the impact using single vs double quote...
Is there a difference between single and double quotes in Java?
Script to raise a single window to the front How to get Steam to recognize existing game files from a different source? Let's say I have a game bought on retail/other digital download and installed on my hard drive. I buy the same game (or a minor variant of it, say the GOTY edition) on Steam. It should be possible to use the existing installation to avoid the generally big downloads. This is very useful as it saves both bandwidth and time.   Previously, as far as I understood, Steam downloaded the game files directly to steam\steamapps\common\&lt;game_name&gt;. Since this folder would be created on starting the download, pausing and closing steam, copying the game files to this folder and then validating game files would make Steam absorb as much as possible and just download the missing files.  Currently, Steam downloads the files to steam\steamapps\downloading\&lt;game_id&gt; and then moves them over to the aforementioned folder once the download finishes. So first of all, what the final folder would be is not clear. So what would be the correct way of doing the same thing, that is, make steam use as much of the existing files as possible? Should the files be copied to downloading\*\, or should I figure out the actual folder (say via googling) and copy the files to steamapps\common\*\?  More specifically, I had a retail copy of Arkham City installed and I just bought the GOTY version on Steam. Now I tried both of the above things, in either case, the validating does not seem to do anything. Assuming I have the correct folder name steamapps\common\Batman Arkham City GOTY, according to , if I copy the files there, Steam seems to just continue with its 17GB download. If I copy it to steamapps\downloading\200260 then the download keeps stopping every few seconds with "Disk Write Error" after modifying 1 or 2 files, and I have to keep hitting resume. Prove $S_4$ has only 1 subgroup of order 12 The subgroup in $S_4$ that I know has order 12 is the subgroup of all even permutations, otherwise known as the alternating group $A_4$. However, I know this from a fact and not because I am able to show a subgroup of order 12 exists in $S_4$ in the first place. If I had not been told there existed a subgroup of order 12 in $S_4$, I would not have known there was one. So I guess this is actually a two-parter for me: 1) How do I go about showing that a subgroup of order 12 does indeed exist in $S_4$? I know by Lagrange that if there exists a subgroup, then the order of that subgroup must divide the order of the group. However, this doesn't say anything about the existence of the subgroup. And Sylow only verifies subgroups of a prime to some power order, which 12 is not. I also know that there might be a cyclic subgroup of order 12, but without manually multiplying every possible permutation in $S_4$, I don't know any other way to check the existence of this or if this subgroup is isomorphic to $A_4$ because I don't know how to write these permutations as functions in order to check if there is a homomorphism (I know that a permutation is bijective by definition). And 2) How do I show that this group of order 12 is the only group of order 12 in $S_4$? Finding all functions $ f : \mathbb N^*\to\mathbb N^*$ such that for every $ x , y \in \mathbb N ^ * $, $ f ( x ) + f ( y ) \mid x ^ n + y ^ n $ Let $\mathbb N^*$ be the set of positive integers and $n$ be a fixed positive integer. How many functions $ f : \mathbb N^*\to\mathbb N^*$ are there such that for all positive integers $x$ and $y$, $f(x) + f(y)$ divides $x^n + y^n$? What should I do before dual-booting Windows 7 and Debian on EFI? How to find and replace in linux on a large file? Oh, hi; So I've got this big json file and I'm trying to find and replace a few things but when I've used sed I get an error and I need a sed or awk string to find and replace it, without getting an error.  prajwal  Current: {&quot;telephone_numbers&quot;:[&quot;1-  Future: {&quot;telephone_numbers&quot;:[&quot;+1-  This is the command i tried and the error i got. sed -i 's/{&quot;telephone_numbers&quot;:[&quot;1-/{&quot;telephone_numbers&quot;:[&quot;+1-/g' output.json sed: -e expression #1, char 56: unterminated `s' command Can different gauge wiring be used in the same circuit? workspace switching via ctrl + alt + arrow not working after upgrade to 13.04, how to fix this? How can I prevent iPhoto from opening everytime I plug my iPad/iPhone? How can I prevent iPhoto/Photos/Image Capture from launching everytime I plug in my iPad/iPhone? How to add user to a group from Mac OS X command line? trying to add a user to a group from the command line but can't figure out how?   Specifically this is on Mac OS X Server 10.5.8  like to add user to 'admin' and 'wheel' groups Is $A\triangle B := A\cup B-A\cap B $ a suitable definition for the symmetric difference of two sets $A$ and $B?$ Or is $A\triangle B := (A-B) \cup (B-A) $ only allowed? class variable vs instance variable --Python Biblatex: nested citations with the \textcites command I'd like to type a citation within the text and another citation inside the parenthesis for the year, something like this:     The work of Author 1 (year; cited by Author 2, year)   For this, I've tried different options of the \textcite command but without results. Also I saw the solution posted , which works for multiple citations within parenthesis but not for in-text citations.  Any suggestion? Where in Europe can I purchase a car without residency? I am not a resident anywhere and plan to travel for the foreseeable future, mostly in Europe. My country has good visa-free access to most of Europe, so it is conceivable I could remain without any residency for quite some time.  I enjoy driving, and maintaining cars, and I would like to purchase a car somewhere in Europe.  Where, if anywhere, in Europe (or outside of Europe, but with the ability to drive the car in Europe) can I legally purchase and insure a car as a non-resident? I am open to creative solutions like setting up a company to own the car, if the capital and ongoing paperwork requirements for the company are not too onerous.    I am aware that I could save money, get places quicker, etc, by taking trains or flying. I have a passion for cars and driving. Suggesting that I not buy a car is out of scope of this question. Finish an activity after a time period Explanation of finite population correction factor? I understand that when sampling from a finite population and our sample size is more than 5% of the population, we need to make a correction on the sample's mean and standard error using this formula:  $\hspace{10mm} FPC=\sqrt{\frac{N-n}{N-1}}$  Where $N$ is the population size and $n$ is the sample size.  I have 3 questions about this formula:   Why is the threshold set at 5%? How was the formula derived? Are there other online resources that comprehensively explain this formula besides  paper? The user who first created a tag wiki is treated as owner for suggested edits Basically the &quot;updates page&quot; loads in a non rich html format, and if theres an update it's missing the tabs on the update page as well.  I can't figure out if this is just because apple may have stopped supporting El Capitan or if I have something else going on.  Any help would be appreciated.  I've trashed the caches in library and the user profile. But this page is the only one that still loads like this (see pic below) on my app store. Error: "To run a ssis package outside of sql server data tools you must install [send successful email] of Integration Services or higher." NOTE that the title of this qusetion is a verbatim error message specific to this user. The error message illustrates a bug in the dtexec application, which substitutes a user variable into the error message string. In this case, the standard message Standard E dition is replaced with send successful email.  The 'standard' error message would be :  Description: To run a SSIS package outside of Business Intelligence Development Studio you must install Standard Edition of Integration Services or higher.    Version SSIS 2012. Package was originally 2005 ver. Package on file system.  DB Engine / Agent on Host 1, SSIS on Host 2.  Execution from Host 2 runs successfully. Execution from Host 1 gives the error in the question subject. Saw , but engine and agent are installed on Host 1. Has anyone seen this? Google returns no results when searching on the exact error (subject line is exact, wording is odd in the error message).  Thank you! I can work. I could work. I will work. I would work. I shall work. I should work.