Why cant I input an array directly into a print statement?
What's the simplest way to print a Java array?
Why isn't sizeof for a struct equal to the sum of sizeof of each member? Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members? Biblatex + Xelatex does not display accents We all know you can't do the following because of ConcurrentModificationException:  for (Object i : l) {     if (condition(i)) {         l.remove(i);     } }   But this apparently works sometimes, but not always. Here's some specific code:  public static void main(String[] args) {     Collection&lt;Integer&gt; l = new ArrayList&lt;&gt;();      for (int i = 0; i &lt; 10; ++i) {         l.add(4);         l.add(5);         l.add(6);     }      for (int i : l) {         if (i == 5) {             l.remove(i);         }     }      System.out.println(l); }   This, of course, results in:  Exception in thread "main" java.util.ConcurrentModificationException   Even though multiple threads aren't doing it. Anyway.  What's the best solution to this problem? How can I remove an item from the collection in a loop without throwing this exception?  I'm also using an arbitrary Collection here, not necessarily an ArrayList, so you can't rely on get. Im working in a site, And I need to present many fields to be filled and the page, so accoding to a selecction before, I have all the field but I have the Api Name, and the object name, but, With this api object field name, how can I get the label????  Example. I have "Student__c", I need to present "Student" to the user.  Thanks a lot for ur help!    Ok, thanks for ur answuers but I think I did not explain well this situation.   I have a list of string, where I have the information but in Api's name.  I present this fields in a table, so the user is filling the fields but with an inputText and not with an inputfield!.. So, in this moment, I dont know what is the label of each field.  My question basically, if by means of a query I could know the label of a field, if I know the api field name and the object name.. My question is if there is a way to consult this info!...  I know if I have the object is enough using an inputfield, But I cant do that. Neither set the label with HTML directly 'cause this is something dynamic.   Anyone knows how can I know, or consult, I guess by means of a query, how to get this label names??? Why doesn't bash expand this variable when I prefix a command with a "one time variable assignment" If I run this bash command and prefix the statement, so that the variable fruit should exist, but only for the duration of this command:  $ fruit=apple echo $fruit  $   The result is an empty line. why?  To quote a comment from wildcard on :     parameter expansion is done by the shell, and the "fruit" variable is   not a shell variable; it's only an environment variable within the   environment of the "echo" command   An environment variable is still a variable, so surely this should still be available to the echo command? How to enable default file manager(nautilus) to handle desktop icons Find the probability of an event determined by an inequality on exponential random variables Let X and Y be independent random variables such that $X∼Exp(1)$ and $Y∼Exp(2)$.  Find the probability that $3X+4Y≤5$.  I thought the equation for solving this was the integral from $\int_0^a \int_ 0^{(a-y)} \lambda_1 e^{-\lambda_1 x}\lambda_2 e^{-\lambda_2 y} dx dy$ where $a = 5$, so I first started with the integral from $\int_0^5 \int_0^{(5-y)} 3 \times 1e^{-1x} \times 4 \times 2e^{-2y} dx dy$ and got $23.83828927$ which is much larger than a probability can be. Any help? Edit source differs from question view? Or are we each other's friends now? Let us say I have added a PPA that has X package that I want but it also has Y package that I do not want to use or receive updates from. How can I, from the same PPA, receive updates for a specific package but deny updates from the same PPA for other packages.  A step by step example would be good since this has happened to me in several PPAs that have a particular package I want but also add a whole bunch of others that I do not yet want to update. Proof $1+2+3+4+\cdots+n = \frac{n\times(n+1)}2$ Restoring original Settings Menu in QGIS customization? Making some tests in Windows XP for customizing a user interface in QGIS 1.8 (see ), I have unchecked, among other options, the Settings Menu. This means that, after restarting QGIS, there's no way of recovering the older settings because there is not already a Setting Menu. So, I cannot reload any ini file.  For your information, as a precaution, previously I have saved in a folder both the original ini file, with all the options, and the customized ini file with only some options (of course, not included here the necessary Settings Menu).  Before reinstalling QGIS (version 1,8), I would like to try other smarter options if there's any. Where and what does QGIS look at where this applications starts? What exactly do the colors in htop status bars mean? Now let set $A$ be arbitrary. So set $A$ exists. Using axiom of pairing $\{A\}$ exists. And then using axiom of regularity, we can argue that $A \notin A$. So, there is some $x$ such that $x \notin A$. Is this a valid proof ? Thanks Just doing this for revision, seems much harder than it should be, should I use $x=\tan u$ ? Any help appreciated. Itemize: Identation is different between first and second line Group theoretic meaning of natural isomorphisms between certain functors If $n$ vectors are linearly independent, is their span $\mathbb{R}^n$? Have $n$ vectors in $\mathbb{R}^n$.  If the $n$ vectors are linearly independent, can we conclude that their span is $\mathbb{R}^n$? Delete with Join in MySQL Here is the script to create my tables:   CREATE TABLE clients (    client_i INT(11),    PRIMARY KEY (client_id) ); CREATE TABLE projects (    project_id INT(11) UNSIGNED,    client_id INT(11) UNSIGNED,    PRIMARY KEY (project_id) ); CREATE TABLE posts (    post_id INT(11) UNSIGNED,    project_id INT(11) UNSIGNED,    PRIMARY KEY (post_id) );   In my PHP code, when deleting a client, I want to delete all projects posts:  DELETE  FROM posts INNER JOIN projects ON projects.project_id = posts.project_id WHERE projects.client_id = :client_id;   The posts table does not have a foreign key client_id, only project_id. I want to delete the posts in projects that have the passed client_id.  This is not working right now because no posts are deleted. What can I actually do with a high credit score? I recently checked my credit score via two of my credit card providers. It seems to be hovering between 790 and 815. One service brands the score it provides as a FICO score and the other specifically says its score comes from Transunion.   What can I actually do to leverage this high credit score to my advantage?  The only new debt I might take on would be a small HELOC or car loan. Does a high score give me any negotiating power with the lender to get a better rate? Should I treat the score as a card in my hand or is it something I should show early in negotiations?  Does a high score make me eligible for any discounts on insurance?  Does a high score open up any options for earning more interest on savings accounts?  The typical advice I'm reading suggests refinancing a mortgage. That seems like good advice in general but it does not apply to my personal circumstances. I've got 3.5% on a 15 year note with 9 years left. A casual review of current rates suggest I could maybe scrape 0.5% off of that, hardly seems worth the effort and cost for half a percent. How is $\ln(-1) = i\pi$?