import java.util.Scanner; public class golfScores{   public static void main(String[] args){     // array to hold     //loop and array building     Scanner sc = new Scanner(System.in);     int[] scores = new int [10];     System.out.println("Please enter the golf Scores :");     for (int i = 0; i &lt; scores.length; i++){       scores[i] = sc.nextInt();      }     System.out.println("The Scores you enterd are: " +scores[]);    } }   it wont print my array. I get syntax error, insert ". class" to complete Expression
In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]
I'm using the 1-25-19 version of 2.8 beta. You have to double tap "a" every time you want to deselect something which is very annoying. Is there a way to make "a" work the old way where "a" selects all if nothing is selected and "a" deselects all if something is selected? ie. no double tap and no alt? Constant term in Lagrangian Why can we always drop any constant term in a Lagrangian density in quantum field theory?  This issue is somehow related to the constant term being some kind of cosmological constant.  Can you please explain this issue? Removing Ubuntu from UEFI Bios Menu How can I set the location (as it's picked up in CoreLocation services) in the iPhone Simulator? About the structure of ''There are/is'' I want to discuss the structure of ''There are/is''. First of all, what is the difference between:  There are three children.  and  Three children exist.  Do they have the same meaning? And secondly, In my native language, we would say that  Üç çocuk vardır.  &quot;Üç çocuk&quot; = Three children, &quot;var&quot; = existence (something  that exists, a being), and &quot;dır&quot; is a copula. So basically, this structure is not different from -for example- ''three children is a car''. ''a car'' and ''existence'' have the same function. But ın English, that structure that I have mentioned is confusing for me. I know that you are all used to it. Some can say ''What's the problem with that? It is just ''there are'' and ''there is.'' ''. I realize that I still did not ask a question. Well, let me try to ask a good one, I guess. Normally, ''there'' means a place where I am not in that place. Is there any relevance between ''there'' that means a place where I am not in that place AND ''There'' that is used in the structure of ''There are/is''? What kind of structure is this? By the way, I am new in English. Please excuse my naive usage of language. What do you think about it? I am a Pakistani national and need to transit through Dubai International Airport (DXB).  I am not planning to leave the airport and both of my flights (arrival and departure) are from Terminal 3.  I am pretty sure that I do not need transit visa at the DXB, however it is no where mentioned on any of their official website.   Can anyone please provide me such a link stating that transiting without leaving the airport does not require visa at DXB, as I need to use this link as a proof for a visa application?  Thanks I noticed that I can only perform certain actions such as commenting a finite number of times in a given period of time. Obviously, rate limiting is in place to prevent accidental misuse or intentional abuse of certain features.  Where else is rate limiting applied on Stack Exchange sites, and what are the limits? How many actuations are "too many actuations"? When looking at used camera bodies, a question that comes up a lot, is "how many shutter actuations, or clicks, does it have?"   What I am wondering is, how many is too many. In other words, is there a reference for knowing when a sensor is more likely to go? How should I judge a camera body with 20000 vs 5000? Is that a significant difference, or is that not even relevant.  Obviously this might something that is dependent on model, so if there is some information based on model that would be even more interesting.  One of the guys at Canon Tech Support said that this is completely irrelevant for the Rebel series cameras, but he is obviously slightly biased. :) What is the Relationship between the Rank and the Number of Eigenvalues? for (a) it says it can't be rank 1 because there is only one non zero eigenvalue? I understand it can't be 0 or 3 but I don't understand how you can conclude we have 2 just by knowing how many eigenvalues we have. As a non-native speaker, I feel that it is ridiculous that can and can't could sound so similar in American accent.  Just now, I was just listening to a video in which the speaker with an American accent says     Fat cells can't reproduce themselves.   The speaker dragged the word "can't" longer for emphasis, but perhaps as a result, what I heard at first was     Fat cells can reproduce themselves.   Of course from the context I later figured out what he was really saying, but I felt extremely surprised by how these two words which literally mean the opposite could sound so similar in American accent. How is that not affecting American people's daily conversations? As a non-native speaker, is there a way for me to further clarify them when my listeners are confused? (Like when you say "one-eight" to clarify that you were trying to say "eighteen" as opposed to "eighty".) Invisible space when trying to remove file (but exclude all files in a list)? I'm trying to accomplish a simple task using the excellent post : I would like to remove all files from a folder except those listed in a .txt file contained in the folder. The syntax works fine, but for some reason all files are removed - basically the script is saying that there are no correspondences between the filenames in the folder and those in the .txt file - but I can see that there are!   I thought maybe there might be some invisible white space after my file names that I cannot see (in the folder or the .txt file). But I don't think so...Is there another solution that I am not thinking of? When I´m in a secure part of a web-site I´m developing (entering a specific page or folder using https), the relative links to the normal pages are automatically converted to https as well. Is there a way to tell an &lt;a&gt; tag to always use the http protocol instead of the https protocol (or the other way around)? I know it´s easy using the complete link ( or ), but I would like it to work with relative links (index.html, ../index.html, etc.). Is "I'm being angry" ungrammatical? Which tools and technologies are used to build the Stack Exchange Network? What tools and technologies are used to build the Stack Exchange Network?  See also: The old advice used to be to double-quote any expression involving a $VARIABLE, at least if one wanted it to be interpreted by the shell as one single item, otherwise, any spaces in the content of $VARIABLE would throw off the shell.  I understand, however, that in more recent versions of shells, double-quoting is no longer always needed (at least for the purpose described above).  For instance, in bash:  % FOO='bar baz' % [ $FOO = 'bar baz' ] &amp;&amp; echo OK bash: [: too many arguments % [[ $FOO = 'bar baz' ]] &amp;&amp; echo OK OK % touch 'bar baz' % ls $FOO ls: cannot access bar: No such file or directory ls: cannot access baz: No such file or directory   In zsh, on the other hand, the same three commands succeed.  Therefore, based on this experiment, it seems that, in bash, one can omit the double quotes inside [[ ... ]], but not inside [ ... ] nor in command-line arguments, whereas, in zsh, the double quotes may be omitted in all these cases.  But inferring general rules from anecdotal examples like the above is a chancy proposition.  It would be nice to see a summary of when double-quoting is necessary.  I'm primarily interested in zsh, bash, and /bin/sh. Is there any way to include an animated GIF directly? Is there any way to include an animated GIF directly in either PDFLaTeX or XeLaTeX? I realize the animate package can include animations in a PDF, but it doesn't support animated GIFs and you have to split them up manually into EPS or PNG files as far as I can tell. Landscape printing from HTML I have a HTML report, which needs to be printed landscape because of the many columns. It there a way to do this, without the user having to change the document settings?  And what are the options amongst browsers. Is the distance function in a metric space (uniformly) continuous? Let $(X, d)$ be a metric space. Is the function $x\mapsto d(x, z)$ continuous? Is it uniformly continuous? I'll preface this by saying I'm very new to Blender - I'm trying to put a bevel on an edge, looks something like this:    As you can see, the vertical side is much longer than the horizontal side.  When I apply to bevel to the edge there, the bevel stretches proportionally - so there's 'more' bevel on the longer side.  I want to bevel without any 'ratio' like that - just a 45-degree bevel, if that makes any sense.  Do I have to put in a loop cut to make the side lengths equal?  I tried using a sub-surf modifier, but it applies on a bunch of nearby edges, when I just want to round this one corner. Fermat's Last Theorem for Gaussian Integers (excluding the integers or  same pure imaginaries) I am investigating solutions to Fermat's equation $$x^n + y^n = z^n$$ with $x,y,z$ in the Gaussian integers, excluding integers and pure imaginaries.  I have found out that there are only trivial solutions for the $n=3$ and $n=4$ cases, e.g. .   I would be grateful if you let me know of the current status or if it is already a theorem.