So, I want to write a huge X with the elements of an array in Java: X00000X 0X000X0 00X0X00 000X000 00X0X00 0X000X0 X00000X  I keep having the same result: Ljava.lang.String;@&lt;randomNumbersAndLetters&gt; package ejercicios;  import java.util.Arrays;  public class FigurasConArrays {      public static void main(String[] args) {         int n = 8;         String[][] myArr = new String[n][n];          for (int j = 0; j &lt; myArr.length ; j++) {             for (int i = 0; i &lt; myArr.length; i++) {                 myArr[i][j] = &quot;0&quot;;                 if (i == j || i == myArr.length - 1) {                     myArr[i][j] = &quot;x&quot;;                   }             }            }         System.out.println(Arrays.toString(myArr));     } }
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]
A positive harmonic function on the punctured plane is constant What factors determine enemy levels or: How do enemy levels scale to the player character's? When I finished Normal Mode at around Level 30 and went back to the  (still at Normal mode), I found that all enemies there are now very easy to kill, meaning they didn't level up (or hit a level cap).  When I went to  as a Level 36 character in True Vault Hunter Mode, I noticed that the enemies are the same level as me.  What factors determine enemy levels?   Specifically, I would like to know:       Are enemies affected by what level a character accepted a mission?      Or is it what level a character is when they first entered an area?      How does Normal Mode, True Vault Hunter mode, and the Ultimate True Vault Hunter Mode affect enemy levels?     Are there enemies that will scale to the player level, as the player levels up? Any enemy leveling differences specific to the DLC areas?         EDIT:   There is now  that explains how this works generally: "In playthrough 1, outside of the DLC, there's no such thing as scaling. Enemy levels are determined solely by the area they're in and your mission." Can anyone expound on that, and comment or provide an answer on what are the specific enemy levels on specific areas and/or missions?    states that "enemies do not actually "scale", or at least from what we know of..." and lists specifics for enemy levels on certain areas in the game (sans DLC areas). Can anyone expound on that and/or add specifics for enemy levels in the DLC missions or areas in TVHM (PT 2.0) and/or UTVHM? The  update has just been released, can anyone provide info about enemy levels on that mode, including the DLC areas or missions? Comparing $\pi^e$ and $e^\pi$ without calculating them I'm trying to make a logo that will be on the header of a website. What I'd like to achieve, and the reason I'm using Blender, is the projected shadows on the background looking perfectly real (as opposed to doing a drop-shadow in Photoshop).  The only thing is, the background has to be transparent because the website might use different background colors / gradients that make it impossible to match with the exported 3D background.  I made this dummy file (not the real logo... duh!):    If I use the file as is, the grey borders of the image will be impossible to match with the website's background color.  Here what I want:    So obviously, I tried masking the plane, which made the shadows disappear. I tried having a plane set to glass, which didn't work either.  And I looked around for a similar question, but didn't find one.   I am not trying to render , or a . I've seen  which has a very difficult solution to this problem, and  that is very similar but in Blender Internal.  is similar too but has never been solved. I'm only a beginner at Compositor, and I'm trying to learn more any chance I get, so any solution in Compositor is welcome if detailed enough. Although if there's a simpler or faster way, it's welcome too!  .blend file: How to install Opera Browser? I am trying to install opera browser from the terminal.  I downloaded the 'debian' installer because it didn't show up in software center.  It completely destroyed my software center - it is frozen and I have no idea how to fix (I have a different thread for that though).  Can I use this thing called synaptic package manager to install Opera?  or am I stuck with Firefox?    How do I install Opera Browser? Relativity and Galaxy Rotation Speed I want the QED symbol to be 1 line lower at the end of proof I am getting a warning when trying to include the .net 3.5 sp1 prerequisite for my setup project.  The warning states Prerequisite could not found for bootstrapping.  Any suggestions?  Thanks The shop is five minutes away.     According to the dictionary, away is an adverb. An adverb modifies a verb. In the above example, what word does away modify? Why is away not an adjective?       The shop is five meters tall.     tall is an adjective in the second example. It modifies five meters (does it?). So why is away an adverb? What are the various units (ex, em, in, pt, bp, dd, pc) expressed in mm? How can I count unique selections from multiple selections in a drop down list (Excel) I would like to count the number of unique selections from a column that contains multiple selections from a drop down list.  For example, column B3 contains,     Monday, Tuesday, Wednesday   The count function returns a value of 1 instead of 3 - is there any way to count the three days distinctly? Thank you!  Multiple selections from a drop down list was made possible using the VBA code from: Force "low power mode" on mac Anyone know of a custom GPS ROM for Samsung Galaxy 5? Possible Duplicate:          I recently bought a Samsung Galaxy 5 (model number GT-I5500) and I'm new to the android world.   I'm not satisfied with the performance of the GPS on my cell phone so I thought it would be interesting to use a custom ROM to see if it improves a bit.   Anyone knows of a ROM that was tested in this model? How can I get the Ubuntu shell on Windows 10 to recognize a connected android device? I'm trying to connect adb to my Android device in the Windows 10 Ubuntu shell, but it doesn't seem to be working:    adb does work normally on Windows, so it's not a problem with the phone or the connection.  Do I have to do something like mount the port in the Ubuntu shell?  How?  (The goal is to pass logcat to grep, which would obviously work better in Ubuntu.) Why does work depend on distance? So the formula for work is$$ \left[\text{work}\right] ~=~ \left[\text{force}\right]  \, \times \, \left[\text{distance}\right] \,. $$  I'm trying to get an understanding of how this represents energy.  If I'm in a vacuum, and I push a block with a force of $1 \, \mathrm{N},$ it will move forwards infinitely. So as long as I wait long enough, the distance will keep increasing. This seems to imply that the longer I wait, the more work (energy) has been applied to the block.  I must be missing something, but I can't really pinpoint what it is.  It only really seems to make sense when I think of the opposite scenario: when slowing down a block that is (initially) going at a constant speed. $2\cos^2x=1+\sin x$.  Determine the exact values of $x$ such that $0 \leq x \leq 2\pi$.    I am experiencing problems with factoring this question.  First I started by getting everything on to the left side so: $2\cos^2x-\sin x-1=0$.  Then seeing as there are two trig variable here ($\cos$ and $\sin$), I used the pythagorean identity and replaced $2\cos^2x$ with $1-2\sin^2x$ to make it into a one variable question: $1-1-2\sin^2x-\sin x-1=0$.   By collecting like terms it then becomes $-\sin^2x-\sin x=0$.  Now you could factor these with $0$ and $-1$, but then it creates uneven brackets so this musn't work.  I don't think the quadratic formula is necessary, but I am wondering if this could be treated as a difference of squares question.    If you replace the $\sin x$ and make the question into $-x^2-x=0$ it is a little easier to look at, however I am not sure if this is the right approach.  If someone could please clarify my answer, that would be appreciated! Which Jedi have served in the Rebellion? Besides Luke Skywalker, Kanan Jarrus, Ezra Bridger and Ahsoka Tano, which other Jedi, regardless of whether they were survivors of Order 66 or became one at a later point, served within the Rebellion's ranks during the Galactic Civil War?  Looking for both canon and Legends versions.  Edit: ok, just to clarify what would qualify as a Jedi for the answer. Loosely speaking, anyone who follow the ideals of the Jedi philosophy - a practitioner in the ways of the Force, a protector of the galaxy, and an opposer to the dark side - would count.   Only trained Force users, not aligned with the dark side, would count. They need to be able to consciously control their use of the Force to aid the Rebellion. This excludes Leia Members of the Jedi Order of the late Republic would obviously count. However, they need to have survived Order 66 (duh), did not renounce the Jedi ways nor succumbed to the dark side, and become a member of the Rebellion. This excludes the Grand Inquisitor nor Darth Vader, but includes Kanan Jarrus and, in Legends, Rahm Kota. Those who are killed in action after joining the Rebellion also count. However, you don't need to be an official member of the order to be counted. You could be opposed to what was wrong with the late order, but as long as you follow the ideals defined above, and identify with them, you are a Jedi at heart by the count of this question. This counts Ahsoka Tano, Luke Skywalker and Ezra Bridger among its number. They aren't in the old Jedi Order's roster, but they believe in what the Jedi are meant to be, and follow its ways in that regard. Galen Marek in Legends, when he genuinely turned to the ways of the light, even though he was still a user of dark side powers, would be one. It's the thought that counts.   So loosely speaking, that means members of the Rebellion who are trained Force sensitives and genuine good guys. I'm looking for a word that can describe a person who does nice things for other people (e.g holding the door open, carrying someone's things) but only for self gain; this person only does nice things to make themselves look good in the eyes of others, but doesn't actually care about the well-being of the people they're helping. pc ram memory 2x1GB or 1x2GB I don't know if it's the right place to ask but can somebody advise me for buying a ram memory for my computer.  I have a Dell Vostro 200 with 1GB of RAM and 667MHz. (2 x 512MB)  I want to buy raise the amount of RAM but I'm confused whether to buy 1 x 2GB or 2 x 1GB  I know it's the same for the available amount of memory but is ther a difference maybe in the clock speed so that 2 x 667MHz will be better than 1 x 667MHz. or maybe accessing one single memory slot will be faster and better than accessing two slots.  Please anyone helps. I have Xubuntu 18.04.3, and whenever I try to install a package through apt-get I get the following message.    Removing linux-image-5.0.0-31-generic (5.0.0-31.33~18.04.1) ... /etc/kernel/postrm.d/initramfs-tools: update-initramfs: Deleting /boot/initrd.img-5.0.0-31-generic /etc/kernel/postrm.d/zz-update-grub: Sourcing file `/etc/default/grub' /usr/sbin/grub-mkconfig: 35: /etc/default/grub: FROM:: not found run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127 dpkg: error processing package linux-image-5.0.0-31-generic (--remove):  installed linux-image-5.0.0-31-generic package post-removal script subprocess returned error exit status 1 Errors were encountered while processing:  linux-image-5.0.0-31-generic libdvd-pkg: Package libdvdcss2-1.4.2-1 was removed, stop processing... E: Sub-process /usr/bin/dpkg returned an error code (1)   Contents of /etc/default/grub:  # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: #   info -f grub -n 'Simple configuration'  GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2&gt; /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="persistent"  # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"  # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console  # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480  # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true  # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true"  # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1"  FROM: GRUB_CMDLINE_LINUX_DEFAULT="" GRUB_CMDLINE_LINUX="" TO: GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1" GRUB_CMDLINE_LINUX="ipv6.disable=1"