package mainPackage;  import java.util.Random;  public class Test {     public static void main(String args[]){         int[][] d = new int[][]{{34,43,23,54,24},{43,34,32,43,}};         int g = d.length;         int k = d[1].length;         for(int i = 0; i&lt;d.length;i++){             System.out.println(d[i]);         }         for(int j = 0; j&lt;d.length;j++){             System.out.println(d[j]);         }     } }   instead of printing out the arrays it print this out   [I@15db9742  [I@6d06d69c  [I@15db9742  [I@6d06d69c   How can I fix it. and what is the problem? Do I need to convert something?
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]
How unique is the php session id How unique is the php session id? I got the impression from various things that I've read that I should not rely on two users never getting the same sessionid. Isn't it a GUID? This is a  about  the use of a *AMPP's stack.    I recently had a talk with some experienced people and they suggested to me not to use a WAMP stack, and instead install apache, mysql and php separately.  I don't understand why they have suggested this, though, so can anyone tell me?  Is there a particular disadvantage of WAMP, or a particular advantage to installing all of them separately?  Since a WAMP stack itself is composed of apache, mysql and php, then what's the difference between using the WAMP stack and installing them all separately? Recently I commented on  question   and the text did got bold but the italic word didn't seem to get italic on Android Chrome(Latest Ver.), but when I saw from the PC browser, it rendered as it should...  I've attached a screenshot of my phone ... When should I use \input vs. \include? There are two different commands to incorporate another file into the source of some document, \input and \include. When should I use one or the other? What are the differences between them? Are there more things like them to be aware of? What's a word for a positive kind of "envy" without the sense of resentment? Imagine your college buddy is now running a multi-billion dollar company, while you're still stuck at the same white-collar day job 5 years after graduation. You chat with him and want to express the idea that you're happy for him and fancy having his lifestyle--something like "I wish I could buy a yacht and cruise around the world like you do; I'm glad you're doing really well!"  Basically, it's the feeling of envy when you take out the resentment from it. Is there a word for it?   (I thought about "admire", but found it too strong and broad) Sum of compact sets Let $A,B$ two non-empty compact subsets of a normed space X. How can we prove that the set $S=A+B=\{a+b : a \in A, b \in B\}$ is compact?  Here's my reasoning:  Let $\Omega = \{\Omega_1, \Omega_2,…\}$ be an open cover of $S$. $\Omega$ induces two open cover $X,Y$ respectively of $A,B$, where   $X_i = \{a \in A : a+b \in \Omega_i~~for~some~b\}$   $Y_i = \{b \in B : a+b \in \Omega_i~~for~some~a\}$  in practice $\Omega_i = X_i + Y_i$.  Now my idea is build a finite subcover this way: consider a finite subcover $X_F = \{X_j : j \in J\}$ where $J$ is a finite set of indices. If $Y_F = \{Y_j : j \in J\}$ is a finite subcover of $B$, then we are done as $\{\Omega_j : j \in J\}$ is a subcover of $\Omega$. Otherwise we can keep adding indexes to set $J$ until $Y_F$ becomes a finite subcover of $B$.   This is not too formal but I don't want to make a simple question unreadable, I think the idea should be clear.   Does this works? Is there a better/easier way to get the same result? Suppose $ \alpha, \beta&gt;0 $. Compute:   $$ \int_{0}^{\infty}\frac{\cos (\alpha x)-\cos (\beta x)}{x}dx $$   Here is what I do: $$\begin{align} \int_{0}^{\infty}\frac{\cos (\alpha x)-\cos (\beta x)}{x}dx &amp;= \int_{0}^{\infty}dx\int_{\alpha}^{\beta}\sin (yx)dy\\ &amp;=\int_{\alpha}^{\beta}dy\int_{0}^{\infty}\sin(yx)dx\\ &amp; \\ &amp;   \qquad\text{let $ yx=u $}\\ &amp; \\ &amp;=\int_{\alpha}^{\beta}\frac{1}{y}dy\int_0^{\infty}\sin u du\\ &amp;=\int_{\alpha}^{\beta}\frac{1}{y}dy\left( -\cos u|_{\infty}+\cos u|_0 \right)\\ &amp;=\log\frac{\beta}{\alpha}(-\cos(\infty)+1)\\ &amp;=\log\frac{\beta}{\alpha}-\cos(\infty)\log\frac{\beta}{\alpha} \end{align}$$  But $ \cos(\infty) $ does not exist right? Does it mean the integral actually diverse?  Edit: The question comes from   Who can point out my mistake in the above deduction? What are these dark spots in my pictures? I've been seeing these dark spots in my pictures. They appear a lot more on some pictures than others, but they are in the same place in the image and independent of the lens being used. Is this dust? I've also heard that you can get oil spots on the sensor.  The image is from a Nikon D7000. Java: how do I check if a Date is within a certain range? I have a series of ranges with start dates and end dates. I want to check to see if a date is within that range.  Date.before() and Date.after() seem to be a little awkward to use. What I really need is something like this pseudocode:  boolean isWithinRange(Date testDate) {     return testDate &gt;= startDate &amp;&amp; testDate &lt;= endDate; }   Not sure if it's relevant, but the dates I'm pulling from the database have timestamps. I have been using the default Ubuntu 11.10 with Unity for some time now and decided to start customizing it.  I have already been able to make some changes with the gnome-tweak-tool. However, there are many themes that I get from gnome-look.org that don't appear in the gnome-tweak-tool even after putting them in the /usr/share/themes folder.  Any idea why this is happening? Thanks. Correctly typesetting a tilde How do I set the tilde (~) character correctly in LaTeX?  There’s a  on Stack Overflow, with a lot of answers. But dare I say it? They all suck:   \textasciitilde is too high, \texttildelow is too low. $\sim$ can be tweaked to look more or less acceptable: {\raise.17ex\hbox{$\scriptstyle\sim$}} – but even that is a hack and uses the wrong symbol.   The point is – the tilde character is definitely an existing glyph in any font I am tempted to use. How can I just access and typeset that character, please? Without resorting to some other, similar-looking glyph that first needs to be nudged into place using a cunning combination of font size and raised boxes?  There must be a possibility to access that glyph directly from the font definition.  To demonstrate, look at this screenshot which attempts simply to display a C++ destructor of a type T (~T):    Compare this with the symbol we get in the browser: ~ – that’s what I want. Javascript && operator as if statement? What's usually the effective visual resolution of typical Hollywood Movies? I'm really surprised by the quality of the visuals in some new movies this year (2018). I'm curious to know in what resolution these cameras typically record to experience this quality on a cinema screen? How do I access folders created on Ubuntu with Windows? How can I prove formally that the projective plane is a Hausdorff space? How many associative binary operations for a set of two elements? Suppose we have a set  $S=\{a,b\}.$ Obviously, the total number of binary operations on $S$ is the number of all the pairs such that $$*(a,b)=a \, \text{or}  \, b,$$ which gives  $ 2 \cdot 2 \cdot 2 \cdot 2=2^4$ possible ones. Is there a way to find which of these $16$ binary operations are associative without writing all the operation matrices and checking it by hand? Can I use Stack Exchange logos on a t-shirt or other apparel? I happened to notice while on the Super User site that one user's picture shows him wearing a shirt with the Super User logo on it. Interested, I wanted to find out where he got it from. Looking through old questions on Meta, I found out that there used to be a shop.stackexchange.com site that sold Stack Exchange gear. Unfortunately, they no longer sell any merchandise.  Is there any site where I can purchase a Stack Exchange site shirt/hat/etc.? If not, could I create a shirt/hat/etc. myself with one of the sites' logos on it? If so, where can I locate the logos in their largest size? Quite simply (and similarly to my other questions about previous versions of this feat  and ) I want to know if this feat is balanced and if not then what should be done to improve it? Since the last iteration I have changed the wording as per David Coffron's answer, increased the time and monetary cost as well as added in the action requirement to activate the rune as per Ruse's answer and increased the costs as per linksassin's answer     Rune Caster      Prerequisites: ability to cast at least one spell of 1st level or higher      When you take this feat you can imbue your spells of 1st level or higher into a rune by casting the spell as a rune, this means that you must have the object you want to put the rune on within reach for the entire duration of the casting as well as any tools required to make the rune.      When casting a rune you add the time listed in the cost time table to the casting time and the cost listed in the cost time table to the components of the spell in accordance with the stored spell.      \begin{array}{|l|l|l|} \hline \text{Spell level} &amp; \text{Time (hrs)} &amp; \text{Cost (GP)}\\ \hline 1 &amp; 1 &amp; 50 \\ \hline 2 &amp; 2 &amp; 100\\ \hline 3 &amp; 4 &amp; 500\\ \hline 4 &amp; 6 &amp; 1,000\\ \hline 5 &amp; 8 &amp; 5,000\\ \hline 6 &amp; 12 &amp; 10,000\\ \hline 7 &amp; 16 &amp; 50,000\\ \hline 8 &amp; 18 &amp; 100,000\\ \hline 9 &amp; 24 &amp; 500,000\\ \hline \end{array}      When making a rune you choose a trigger which is touch and/or command word and can be specified to only a group of people/creatures or a body part. When defining creatures that can activate the rune you may be as specific or general as you want. The DM interprets the designated creatures as your character would have interpreted them when you made the rune.      When you store a spell in a rune some of the ranges are altered, a range of touch becomes a range of self, a range and target keeps the same range and the person who activates the rune designates the target and range with an aoe sets the origin to the center of the rune, lastly a range of self stays the same.      When a rune is activated the spell is released acting as if it had just been cast without requiring any components or concentration. The rune then disappears leaving no trace of its presence. To activate a rune you must complete the trigger, this means speaking any command words and physically touching the rune each if applicable, this requires the activator to use the object interaction action while within reach for touch runes and while within 60 ft for command words. If both triggers are used then they must both be fulfilled within the same turn. 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. Does English have any singularia tantum besides mass nouns?