I am trying to convert a string array into an arraylist. However, when I use this code to print the list, it returns values like this @3fec1b24. Could anyone help me with this?  ArrayList&lt;String[]&gt; dataList = new ArrayList&lt;&gt;(); dataRow = new String[nc]; dataList.add(dataRow);
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]
USB stick mysteriously become write protected So, somehow over the weekend, my 1GB USB flash drive has managed to become write-protected.  There is no switch on the stick, so I'm concluding that something has corrupted at some point.  Obviously I can't format it or remove.  The output from dmesg | tail is:  Buffer I/O error on device sdb1, logical block 328168 lost page write due to I/O error on sdb1 sd 73:0:0:0: [sdb] Unhandled sense code sd 73:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE sd 73:0:0:0: [sdb] Sense Key : Data Protect [current] Info fld=0x0 sd 73:0:0:0: [sdb] Add. Sense: Write protected sd 73:0:0:0: [sdb] CDB: Write(10): 2a 00 00 05 08 00 00 00 01 00 Buffer I/O error on device sdb1, logical block 328200 lost page write due to I/O error on sdb1   I think the second and final lines are a giveaway to corruption, but I don't know how to interpret this output.  Could someone help to see if this output gives any indication?  I usually eject the drive before removing it, but I may have been lax once or twice.  The data isn't critical, it's just bugging me.  Any suggestions on how to fix it (if the drive even can be) would be greatly appreciated. Rich Wizards, Poor Muggles How can I release and renew my DHCP lease from Terminal? From the Terminal, how can I release and renew my DHCP lease?  Currently, I'm doing the following for the wireless interface, but I'm wondering if there's a better way:  sudo ifconfig en1 down sudo ifconfig en1 up   For the wired interface, replace en1 with en0. Why is my voice command missing from the ok glass menu in XE16? Can I, as a reviewer, tell authors to get a native English speaker to proofread their paper? I am reviewing a paper for possible publication in a respected journal. The English in the paper is very poor. The authors are clearly not native English speakers. I want to write something to the effect of the following in my review.   I advise the authors to find a native English speaker to proofread the manuscript.    My question: Is this appropriate in a review?  On one hand, I think it is good, constructive advice. The paper would be significantly clearer if someone spent a few hours helping them fix it up. I can try to help them through reviewer comments, but it would be much easier if someone could help them in person. The authors are located in a western English-speaking country, so they should be able to find someone.  On the other hand, I don't want to be "the mean reviewer." I understand that English can be difficult to master for immigrants. Perhaps there is a more diplomatic way of saying this. Is there a way to make an Oracle query behave like it contains a MySQL limit clause? In MySQL, I can do this: select *  from sometable order by name limit 20,10  to get the 21st to the 30th rows (skip the first 20, give the next 10). The rows are selected after the order by, so it really starts on the 20th name alphabetically. In Oracle, the only thing people mention is the rownum pseudo-column, but it is evaluated before order by, which means this: select *  from sometable where rownum &lt;= 10 order by name  will return a random set of ten rows ordered by name, which is not usually what I want. It also doesn't allow for specifying an offset. Show that  $$\lim \frac{1}{n} \sum_{i=1}^n \frac{1}{i} =0 $$  I've proved that this sequence converges (it is bounded and decreasing). NOW, I need to find a sequence that is bigger than this one and goes to zero. Maybe something using geometric serie of 1/2  Thanks in advance! Slipstream Windows 7 + Service Pack 1 What can I use to find duplicate photos, including photos that have been resized? Types of polynomial functions. Quadratic, cubic, quartic, quintic, ...,? I would very much like to have a complete list of the types of polynomial functions. I know that theres:  Quadratic :                      (AX^2 + BX + C) Cubic     :               (AX^3 + BX^2 + CX + D) Quartic   :        (AX^4 + BX^3 + CX^2 + DX + E) Quintic   : (AX^5 + BX^4 + CX^3 + DX^2 + EX + F)   What are the names of polynomial functions to the further powers? Sexstic? Septic? Octic? I'm not sure, so if someone could enlighten me, then that would be great. Please provide a list that goes at least to the seventh power, but it would be nice if you could go further. Thanks. What does the symbol $\subset\subset$ mean? In some texts (mainly complex analysis or harmonic analysis) I sometimes see the following double subset symbol $\subset\subset$ for inclusion relation of two regions, e.g., $\Omega$ and $\Omega'$ are two regions in $\mathbb{C}$ such that $\Omega \subset\subset \Omega'$. I never figured out what it means exactly; I always interpreted it as the closure $\overline{\Omega}$ is contained in $\Omega'$ (so that some nasty boundary effects can be avoided). Is that right? Or does $\subset\subset$ mean some other kind of inclusion? Thanks. Can you use your off-handed weapon for your main attack action? My friend is 2 weapon fighting a flesh golem. He has one sword that does lightning damage, and one sword that does fire damage. His right hand holds the lightning sword, and his left hand holds the fire sword.  My friend wants to attack with his left hand because lightning heals the golem. However, the DM says that because his left hand is his left hand, he can't use it as his "main" hand, and only attack with it. Is this rules as written/intended? Abelian groups of order n. Is there a number $n$ such that there are exactly 1 million abelian groups of order $n$?   Can anyone please explain. I would yes because numbers are infinitive, and so any number n can be expressed as a direct product of cyclic groups of order n.  Can anyone please help  me understand.  Thank you. Ubuntu 14.04 Wireless not working: no network interface. Atheros [168c:003e] device When adjusting the volume in Windows 8.1, a box appears at the top left corner of the screen. This box sticks around for ~13 seconds before it fades away. If you attempt to dismiss it by click on it, it switches to the music app.  How do you disable or dismiss this annoying box? At the very least, can the time visible be adjusted? More times than not, it's in the way. I am executing my ./shell.sh which contains   eval "$(pyenv init -)" pyenv shell 3.8.2   But nothing happens. If i run this code in bash manually it works fine and shell version of python switches from 2.7.10 to 3.8.2.  I am in the right directory and I gave the .sh file execution permissions. How long do you get to use a UK standard visitor visa from time of issue or is it valid for entry indefinite I am going to apply for a standard visitor visa for my girlfriend to enter UK. If it is issued how soon does it have to be used after issue, ie. validity until time of entry? In what order does WordPress load plugin files? In what order are plugins loaded in WordPress?   And within a particular plugin's folder, what order is followed for loading? Since reading the answers to my question about  I've been good about giving my meat time to defrost in the refrigerator. However, my plans for tonight have changed and I'd like to defrost some ground beef that is completely frozen for dinner this evening. What are my options to do so quickly and safely? I know I can set the render border with Ctrl+B and dragging a box.  But is there  a way I can exactly specify the border dimensions?