Is there a way to do this:  Player[] player = new Player[numOfPlayers]; for(int i=0; i &lt; numOfPlayers; i++){     player[i] =  new Player("Player"+i, 0);  } //becomes like this right?  player[0].name='a'; player[1].name='b' player[2].name='c' player[3].name='t' player[i].name='baz'   How can I remove say player[2] so that the new array of objects becomes:  player[0].name='a'; player[1].name='c' player[2].name='t' player[i].name='baz'
Given an array of n Objects, let's say it is an array of strings, and it has the following values:  foo[0] = "a"; foo[1] = "cc"; foo[2] = "a"; foo[3] = "dd";   What do I have to do to delete/remove all the strings/objects equal to "a" in the array?
Why do sunbeams diverge even though the sun is much more than a few kilometers away? Consider this picture of sun beams streaming onto the valley through the clouds.    Given that the valley is only (at a guess) 3km wide, with simple trigonometry and the angles of the beams, this gives the result that the position of the light source is being a few tens of km away at most.   What is wrong with the analysis? how to adapt the sorting of a custom type `@standard` in using biblatex/biber I already have a 6 month valid UK business visa received prior to April 24 2015. I was supposed to travel to the UK in April, but my trip was cancelled on medical grounds.  I am now planning to visit the UK in July for tourism. Would it be fine for me to do so? Will I be allowed to enter the UK? Should I carry the original invite letter and medical certificate to prove why I didn't go the first time? Let $f(x)\in C^2:[0,1]\rightarrow\mathbb{R}$ satisfy $f(0)=0,f(1)=1,f'(0)=f'(1)=0$, prove that: $$\max_{x\in[0,1]}|f''(x)|\ge4$$  By using Taylor series I can prove that $\max_{x\in[0,1]}|f''(x)|\ge2$, but I cannot go further. I pressed F2 to take a few Minecraft screenshots. Later I couldn't find them. Where are they stored on my computer? Ban "What have you tried?" links in comments Recently on SO, I've been noticing a lot of link-only comments on (admittedly bad) questions.  The typical comment looks like this:        Now, my first instinct is to flag the comment as "not constructive" or "too chatty", but the fact is that the blog post linked to is actually good advice.  On the whole though, the way it is being wielded like a blunt instrument comes across as—at best—lazy arrogance in my opinion and is not adding anything to the network.  Can we ban "What have you tried?" links like we did with ?  An example:    To be clear, I'm not proposing that we stop people asking for clarification or expecting askers to explain themselves properly. I just don't think comments like these are particularly constructive. Why Didn't People Think That Voldemort Died After His Attack on Baby Harry? After the Avada Kedavra curse rebounded from Harry onto Voldemort, Voldemort disappeared. I'm curious as to why so many key players believed Voldemort was still "alive" somewhere, his powers decimated, but, under the right circumstances, able to return to full power. It seems the witches and wizards in chapter one of Philosopher's Stone, The Boy Who Lived, were happy to believe that Voldemort was gone forever. Why didn't everyone believe Voldemort had died, rather than just disappeared? Was it the lack of a body? Or were there other reasons?  Here's a couple of quotes from Philosopher's Stone if anyone wants to review them. Otherwise, just disregard.     ‘A fine thing it would be if, on the very day You- Know-Who seems to have disappeared at last, the Muggles found out about us all. I suppose he really has gone, Dumbledore?’   ‘It certainly seems so,’ said Dumbledore. ‘We have much to be thankful for.’   Philosopher's Stone - page 13 - Bloomsbury - chapter 1, The Boy Who Lived   ‘But what happened to Vol– sorry – I mean, You-Know-Who?’   ‘Good question, Harry. Disappeared. Vanished. Same night he tried ter kill you. Makes yeh even more famous. That’s the biggest myst’ry, see ... he was gettin’ more an’ more powerful – why’d he go?   ‘Some say he died. Codswallop, in my opinion. Dunno if he had enough human left in him to die. Some say he’s still out there, bidin’ his time, like, but I don’ believe it. People who was on his side came back ter ours. Some of ’em came outta kinda trances. Don’ reckon they could’ve done if he was comin’ back.   ‘Most of us reckon he’s still out there somewhere but lost his powers. Too weak to carry on. ’Cause somethin’ about you finished him, Harry. There was somethin’ goin’ on that night he   hadn’t counted on – I dunno what it was, no one does – but somethin’ about you stumped him, all right.’   Philosopher's Stone - pages 46-47 - Bloomsbury - chapter 4, The Keeper of the Keys What are the mechanics by which Time Dilation and Length Contraction occur? Add/Delete table rows dynamically using JavaScript proper use google webmaster tools URL Parameters There are some urls like http://domain.com/user/:username and http://domain.com/post/:id on my website, the username and id is the parameter from database. I try to let google crawler more efficiently , can I use google webmaster tools &gt; URL Parameters &gt; add parameter ? I read the document but still don't get it how to set up? the column Parameter and the rest what should I filled? or this tools only for get method parameter? Rolle's Theorem and the Mean Value Theorem Let $f\colon \mathbb{R} \to \mathbb{R}$ have derivatives of all orders. Suppose that $a &lt; b$ and that $f(a)=f(b)=f'(a)=f'(b) =0$. Prove that $f'''(c) = 0$ for some $c$ in $(a,b)$. Can I publish a feed of my Meetups to appear on my Google Calendar? I'm a bit of a Meetup junkie so I'd like to automate the appearance of any Meetup I RSVP to automagically appear on my Google Calendar. Is something wrong with StackOverflow's spam filter? Recently there have been huge numbers of spam topics related to football streaming. They have all been spam flagged and deleted but there are more getting posted all the time, I just flagged another 6 or so a few minutes ago. This has been going on for around 3 days now with these topics getting constantly posted over and over again in the  tag. Change files with Editor that need sudo permissions I want to change files with KomodoEdit that need sudo permissions. I can't start KomodoEdit with sudo, though (for whatever reason). Can I somehow grant Komodo permission to edit those files (in particular I am talking about apache2 files and /etc/hosts)? Mount ext4 partition with >4KiB block size I'm attempting to mount a partition from a NAS and the block size is 65536 bytes, this is above my distribution's precompiled kernel memory paging size of 4KiB, so I cannot mount it normally.  Which kernel compilation parameters would I need to change to get a memory paging size large enough?  Would it be possible under the x86-64 architecture?  EDIT: There doesn't seem to be an option for it in make xconfig unless I'm just missing it.  From page_types.h under arch\x86\include\asm  /* PAGE_SHIFT determines the page size */ #define PAGE_SHIFT  12 #define PAGE_SIZE   (_AC(1,UL) &lt;&lt; PAGE_SHIFT) #define PAGE_MASK   (~(PAGE_SIZE-1))`   It doesn't look to be configurable.  I could change this number directly to 16 and it would probably make pretty explosions and destroy Tokyo.  I shall probably try it later this evening. I have windows 7 in Arabic. Now I dowloaded QGIS 2.14.3-2 in French.  But when I installed it shows Arabic menu/tools...  How can I change the menu language to French? Since  and  you can get into a situation where your max HP is zero due to leveling up… what happens next?  What happens when your max HP is 0 because you leveled up with a negative Constitution modifier? Are you dead, unconscious, or what, and where do the rules say this? (The  assumes death, but that isn't established as fact anywhere yet.) Is there any built-in way to get the length of an iterable in python? For example, files, in Python, are iterable - they iterate over the lines in the file. I want to count the number of lines.   One quick way is to do this:  lines = len(list(open(fname)))   However, this loads the whole file into memory (at once). This rather defeats the purpose of an iterator (which only needs to keep the current line in memory).  This doesn't work:  lines = len(line for line in open(fname))   as generators don't have a length.  Is there any way to do this short of defining a count function?  def count(i):     c = 0     for el in i: c += 1     return c   To clarify, I understand that the whole file will have to be read! I just don't want it in memory all at once Stop Edit/Rollback Wars: Limit Number Of Edits/Rollbacks Per User Per Post Per Day I came up with an idea for how to begin putting an end to the edit/rollback wars and then the ensuing comments battle...   What if you are only allowed to edit a post (not the author) once a day. What if you are also only allowed to rollback one edit to your post a day. There would not be a overall limit on the users ability to edit other posts other than the one edit per post per day. There would also not be a limit on the number of times a single post could be edited or rolledback (multiple users), but each edit/rollback would trigger the 24 hour wait... There is currently some threshold in place that allows a post to be edited after it is posted without calling it an edit.  This same threshold could apply to the edit in case a mistake is made (fat fingered, mis-tagged, etc.) which would allow the editor a window of time to correct a mistake before getting locked out.     If either the editor or rollerbacker feel that the current state of the post is not acceptable and they are out of mods for the day, then a moderator can get flagged through the current process. How did Newton discover the universal law of gravitation? I am having trouble comprehending how anyone could come up with this formula:  $$F = \frac{GMm}{d^2}.$$   Could someone walk me through this?