public class list{      public static void main(String[] args) {         // TODO Auto-generated method stub                  //Dynamic arraylist in which is input is dynamic like below is example           ArrayList&lt;String[]&gt; rows = new ArrayList&lt;&gt;();           rows.add(new String[]{&quot;1&quot;,&quot;2&quot;,&quot;3&quot;});           rows.add(new String[]{&quot;1&quot;,&quot;2&quot;});           rows.add(new String[]{&quot;1&quot;});                      for (String[] now : rows) {             System.out.println(now);         } } }  I am receiving this output in console can anyone help how to print the dynamically changing length of array. [Ljava.lang.String;@372f7a8d  [Ljava.lang.String;@2f92e0f4  [Ljava.lang.String;@28a418fc
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]
Is $0 \, \mathrm m = 0 \, \mathrm s = 0 \,\mathrm {kg} = 0$? How do we define $[0 \, \mathrm m]$?  I once was given an assignment where I was asked to deduce and write down some physical quantity. It turned out that this quantity was $0$ in one unit or another, so I decided to drop the physical units because I figured that it didn't matter anyhow.  But I got to thinking:  If $0 \, \mathrm m = 0$, then we could add units of different dimensions (an operation not normally defined) like so: $5 + 0 \,\mathrm m = 5$.   Does $[ \cdot ]$ map $0 \, \mathrm m$ to both $0$ and $L$? Is there an established regime of thinking about physical quantities as an abstract algebra? Perhaps as a vector space where formal sums such as $5 \, \mathrm m + 10 \, \mathrm s$ are allowed? Would it be improper to drop the units of measurement of $0 \,\mathrm m$ like this in an academic paper? To make Latin-letter variables bold I can use e.g. \mathbf{a}, but while putting Greek letters or symbols such as \nabla inside \mathbf doesn't cause any errors or warnings, it also doesn't do anything else.  What is the best way to make bold math symbols, in particular Greek letters and \nabla? Blender 2.78 with Windows 10 lags when interacting with the UI Should players get a surprise attack by interrupting a villain's speech? Just before confrontations with the "boss" of a dungeon or adventure, I often like to ham it up a bit and let the BBEG-of-the-week gloat a bit about how brilliant their plan is, or what a thorn in the side the PCs have been, or about how the PCs will never win, etc. Usually this is pretty brief, but it sets the tone of the encounter, and generally allows the players a window to say anything they wanted to say before we start the final combat. It also gives the players a chance to ask questions in case they missed something about the plot and they'd like it cleared up in-game.  Usually this goes just fine, and the players seem to generally like it, but sometimes a player who doesn't quite fit the narrative-focused mindset of the rest of the party gets a little restless and throws the first punch. Again, usually this doesn't happen, but occasionally it does.  If a player decides to do this in a given speech, how should I respond? I've defaulted to making everyone roll initiative when a player says they attack in a situation like this. After all, I don't really want to reward the players for attacking in the middle of dialogue, since I (and most of the players) find the dialogue to be really fun, and it mostly exists for the players' benefit, anyway. Besides, when the villain finally attacks, they don't get a surprise round -- their attack just means everyone has to roll initiative.  On the other hand, I feel like the player who threw the first punch might feel a little cheated in not getting a free shot off. They might be trying to have a cool moment of emulating Han Solo, blasting the enemy when they're caught off-guard gloating. Since I make them roll initiative, though, I rob them of this moment and Greedo might get the first shot off, anyway.  So, in this situation, should the player who fires first get a surprise round, or am I handling it correctly in making everyone roll initiative?  5e is the relevant edition, here. Quoting the rules is nice, but I'll take a well-reasoned argument for one way of playing or the other over a strictly RAW answer. What is that "1 view" which automatically appears after submitting a question? Are the questions submitted on SO and other SE sites initialized with 1 view, or does the first view belong to the user who posted it?  Why is a question given a free first view? It just appears, as soon as the question is published. Does $\lim_{z\rightarrow0}\frac{\bar{z}^2}{z^2}$ exist? I'm working on an app that requires no user input, but I don't want the iPhone to enter the power saving mode.  Is it possible to disable power saving from an app? We have a new application that requires glibc 2.4 (from gcc 4.1). The machine we have runs on has gcc 3.4.6.   We can not upgrade, and the application must be run on this machine.    We installed gcc 4.1, however, when it comes to compile time it is using all the includes, etc, from 3.4.6.    How do we get around this?  Any suggestions on using 4.1 for just this application? Back in Europe I have a N64 console. As I am currently living in Japan, I find myself tempted to buy some old N64 games in Japanese. However, the articles about the N64's region locking usually assume Japanese games on an American console...  My question thus is: Can you play a Japanese N64 Game on a European console? See how many duplicates of a post? Can I see how many duplicates there are of a post? I.e. how many posts have been labelled as duplicate because of this post? If so, how? And can I also get a list of these duplicated posts? When writing my custom function I need to manually append node name to a taxonomy term link. To get the taxonomy term part done I use:    $link_uri = taxonomy_term_uri($term);   $path_alias = drupal_get_path_alias($link_uri['path']);   This works ok, now - I want to append node name ("/" . $node_name), but instead of raw string, I want the Pathauto transliterated output, as set in the URL alias configuration, for that node context.  What function should I use to mimic that output? I looked at hook_pathauto_alias_alter(&amp;$alias, array $context) but I'm not sure that's what I need. Shared email on 2 Facebook accounts is stopping access to both accounts My husband wanted me to set up a Facebook account for him and I accidentally used our shared email address, which is set against my own account.  Since then, neither of us has been able to log in, so I can't alter any settings.  Can anyone advise how to resolve this please? Your communities list is not visible in mobile web on site where you don’t have an account If you don’t have an account for some site, you can still see a list of your communities via top bar menu of this site, e.g. on 3D Printing:        But this works only for full web, in mobile web «sign up or log in» is shown:        When you have an account then the list of your communities is shown even for mobile web: Punctuation in an indirect quotation How can I kill minerd malware on an AWS EC2 instance? (compromised server) I found malware on my ec2 instance which was continuously mining bitcoin and using my instance processing power. I successfully identified the process, but was unable to remove and kill it.  I ran this command  watch "ps aux | sort -nrk 3,3 | head -n 5"  It shows the top five process running on my instance, from which I found there is a process name 'bashd' which was consuming 30% of cpu.  The process is   bashd -a cryptonight -o stratum+tcp://get.bi-chi.com:3333 -u 47EAoaBc5TWDZKVaAYvQ7Y4ZfoJMFathAR882gabJ43wHEfxEp81vfJ3J3j6FQGJxJNQTAwvmJYS2Ei8dbkKcwfPFst8FhG -p x   I killed this process by using the kill -9 process_id command. After 5 seconds, the process started again. All of my Firefox add-ons have been disabled suddenly, how can I re-enable them? All of my Firefox extensions were spontaneously and simultaneously disabled (converted to Legacy status) a few moments ago.  How can I re-enable them? Firefox 66.0.3 (64-bit) I am trying to print a simple value for $AR1_p1 but the variable $i is not evaluating. for i in 1 2 3 4 do     AR1_p1=22     AR1_p2=23     AR1_p3=24     AR1_p3=25     echo $AR1_p$i done   It's like concatenating dynamically. Any suggestions on how to fix this?. How do I prove that in every commuting family there is a common eigenvector? For quite some time now I have been asking myself how the world of Game of Thrones is shaped and if the people living in that world know the shape.   In questions here on SciFi.Stackexchange concerning the unnatural seasons or the definition of a year in Westeros, it is often  that the Westerosi can measure the duration of a revolution of their planet around the sun. But that only works if they know that they actually live on a planet.   In  answer it was said that people have been travelling in ships around the world. However, I cannot remember any passage in the books supporting this. Actually I only remember evidence for the opposite:    During the  on the Iron Islands, there is a man called  who promises the Ironborn treasures from lands far to the west, if they elect him as king. However, the POV character of that chapter (I think it was Victarion Greyjoy) does not believe him and sees the madness in Gylbert's eyes - as if speaking of travelling west is crazy.  Later when he leads the attack against the Shield Islands, the Iron Fleet travels out of sight of the coast line. This manoeuvre is considered very dangerous and risky. If this is already dangerous, traveling even further west appears close to suicide.   In addition, there was a  who sailed to the far west and never returned.   establishes that the world is not a hollow world, but is not conclusive as to whether it is a planet.  Is there any evidence in the books that the World of Ice and Fire is a planet? Was it established that the Westerosi know the nature of their world? Render semi-transparent volume with cycles I want to render an image of a fire in cycles, but as a png with a transparent background. Without a transparent background, the output image looks like this:    But as soon as I tick the "Transparent" checkbox under Render->Film, all the semi-transparent parts of the image are not rendered and it looks like this    which is clearly not what I want. I've tried to add a holdout shader or a transparent shader to my smoke domain material nodes, but it didn't help. I've only found answered questions for semi-transparent glass, but none for volumes. My node setup looks like this:    but the transparent shader doesn't do anything.  Has anyone an idea how to fix this?  Thanks  Edit: I've just changed the flow type to "Fire and Smoke" instead of "Fire" and now the semi-transparent parts render too, but I don't want the smoke.