I'm simply trying to get my array to print correctly. This is what I have so far.  public class Driver {     public static void main(String[] args)     {         //create new instance of the ArrayLab class with parameter of 10         ArrayClass array = new ArrayLab(10);          array.initialize(); }     I do realize that I have a parameter for my class, the problem remains the same whether or not I have just a simple instance variable with the class parameter inside of the java array field.    public class ArrayClass {     //array instance variable     private int[] array = new int[]{0,0,0,0,0,0,0,0,0,0};      //array constructor     public ArrayClass(int integer)     {         //array parameter field [0,1,2,3,4,5,6,7,8,9] 10 in total.         int[] temp = {1,2,3,4,5,6,7,8,9,10};         array = temp;      }      public void initialize()     {          System.out.println(array);      } }   It all compiles, but the problem I'm having is when it prints the output is comes up as something like this [I@1443957. What does that imply?
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]
Why ZSH ends a line with a highlighted percent symbol? I've noticed this on occasion with a variety of applications. I've often thought it was because the output was cancelled early (ctrl+c, for example) or something similar, and zsh is filling in a new line character. But now curiosity has gotten the best of me, since it doesn't seem to do this in bash.   zsh    bash    The Sequence program is something I pulled from a book while reading on Java certifications and just wanted to see if it would compile and run. I did notice that it does not use the println() method from the System.out package/class. Instead it uses plain old print().  Is the lack of a new line character the reason I get this symbol? Change date format [YYYYMMDD] to [MM/DD/YYYY] I generated a report that formats date as 20160509 and my Google Sheets locale is already set to United States. I've played around with various options within Format > Number > Date Format but I can't change the dates to MM/DD/YYYY format without doing a simple find and replace. How do I accomplish this? Proving $|P(A\cap B)-P(A)P(B)|\leq \frac{1}4$ Let $A$ and $B$ be two events of a probability space. Prove that  $\displaystyle|P(A\cap B)-P(A)P(B)|\leq \frac{1}4$   I think it's a very challenging problem, and I've made no progress so far ...  Can someone give me a hint ? When to use the double not (!!) operator in JavaScript I have scene that looks like this:   And I want to add volumetric lighting to it so that light forms a rays of light when it go through the trees like on this example that I found in youtube:   But the problem is that all of these tutorials show how to make this lighting coming from windows, but when I try to replicate it in my forest scene it looks like big ugly fog with cubical shape. Also the light is coming from the back of the camera (as you can see) and there are some spots that needs this special lighting (like places where light goes through trees) and some that don't (like big bright are on the bottom left corner) so I can't just add a giant cube to all of the scene. I'm searching for a template which makes a document look like it's written with a real typewriter. Ideally, this means it's not only in mono-spaced font, but the hyphenation is adjusted accordingly. Also, some randomness would be nice (e.g. some characters more bold than others), so that it looks more natural. Can I levitate an object without using an electromagnet? Any subgroup of index $p$ in a $p$-group is normal. Film in which people can time-travel to relive the biggest world disasters; main character changes a destiny, saving many people I saw a film about 10 years ago. It was about people that could live the biggest disasters in the world that had happened again. They could travel in time and see these disasters. There were some plane crashes, metro crashes, Titanic disaster and so on.  But one man (positive main role) saw another bad man who was throwing a coin in the air and this coin fell down. This positive role changed a destiny and saved many people. This saving caused some damages to negative roles in this film. I am trying get an unused server up and running, it booted fine but i was greeted with the login window and none of the known passwords seem to work. The server I am trying to get to work is not a Domain Controller and has not been used in a long time.  OS: Windows 2003 Server R2 Enterprise Edition  I tried Ophcrack XP (there is no WinServer version of Ophcrack) - it couldn't locate the partitions with hashes. I tried mounting the partitions myself (#mount /dev/hda*x* /mnt/ntfs), but it gave me an error saying /dev/hda*x* didn't exist.  Next I tried booting into a Ubuntu 10.04.3 LiveCD so that I could install and use chntpw - no go, Ubuntu Live wouldn't boot.  Based on what I've read up the following tools may be of help:   Windows Password recovery Petter Nordahl-Hagen's Offline NT Password &amp; Registry Editor Openwall's John the Ripper EBCD – Emergency Boot CD - Bootable CD (R)ecovery (I)s (P)ossible Linux rescue system   I am hoping that someone here has prior experience with Win2k3 Administrator password resets so that I don't end up having to try all of the above to find out which one works. My background and gameobjects are 2d sprites not UI images ,I want to know how to make my background scale with screen size and positions of 2d sprits on it don't change after building game (webGl) like scale canvas with screen size and anchor points in UI elements .  Before building the game   After building I need to draw a tree, and constantly using dotty and including the PNGs is starting to be a pain. Is there a way to get LaTeX to draw it's own trees that doesn't involve learning an entirely new language like TikZ? Why does ice make such peculiar sounds? I've come across a couple of videos where some interesting sounds are produced using ice.  (Click on the images to see the video.)      Here, they drop a block of ice into a deep crevice and as the block falls, you can hear some strange sounds. These sounds remind me of some sound effects in old cartoons and sci-fi movies. The pitch of the sounds start high and end up low. Is this some kind of doppler effect?      Here, there's a man performing 'nordic skating', making the same sounds as he skates on top of a thin ice sheet. Maybe they are caused by the cracking ice. But why does that sound like this?    There are some other videos too, where they skip stones on frozen lakes.    Here the ice makes some high-frequency sounds which correspond to the chirping of birds.  What are these sounds and why do they sound the way they sound? character "5" repeated in text fields, and system freezes I am running Ubuntu 15.10, with the latest updates.  When I type in a text field (google search, type name of file, etc..) the number 5 gets typed on its own and it keeps repeating until I press ESC and when I try to continue typing the number 5 resumes filling in the text field.  I have tried to set the keyboard repeat to zero, but does not help.  This does not happen all the time, sometimes if I shut down the computer it then behaves normally when I restart it, other times the computer becomes useless because I cannot type in any of the text fields.  Thanks Sal When using find, how do I return the file name and the line number when searching for a string? I manage to return the file name in one command and the line numbers with another one, but I can't seem to combine them.  File names: find . -type f -exec grep -l 'string to search' {} \;  Line numbers: find . -type f -exec grep -n 'string to search' {} \; Can Spirit Guardians affect enemies through walls? Is it possible to make armour that can survive /kill? /kill is said to be infinity damage but I have a question can you really survive it in Java edition. However, it is possible that you can pretty much survive this if you are on Minecraft Java Edition in 1.8 or lower and you can just have resistance 5 and you will survive this but can you make armour that helps you survive in 1.16 and in java-edition. Noether's Theorem: Lie groups vs. Lie algebras; finite vs. infinitesimal symmetries I've had a brief look through similar threads on this topic to see if my question has already been answered, but I didn't find quite what I was looking for, perhaps it is because I'm finding it hard to put words on my question and I hope that you will be able to help me ask it clearly.  I'm trying to link what I know from mathematics to what we are writing in physics for Noether's theorem. If I understand correctly we are looking at the symmetries of the action i.e. under which symmetry groups is it invariant. Noether's theorem allows us to calculate a conserved current in the case of a continuous symmetry (Lie groups), by means of so-called infinitesimal symmetries which I believe to be elements of the Lie algebra (so the tangent space to the neutral element) of the Lie group.  I'm guessing that if the action is invariant under the symmetry then it's "variation" should be 0 when we vary the system (space-time coordinate, or field) using this symmetry; it is exactly this step that I would like to understand better, how can I formalize this step correctly mathematically? How should I understand this variation, and how does it's calculation give rise to the elements of the Lie algebra? Low-res texture blurry I unwrapped a simple plane and applied the following 80x80 pixel picture:    Yes, it's quite small. The problem is, the result is all blurry, like so:    How do I make it accurate to the pixel? Regular expression to match a line that doesn't contain a word