Why doesnt this Java code, provided by oracle, throw an exception when run?
What is a NullPointerException, and how do I fix it?
Compilers and argument order of evaluation in C++ Regarding the advanced edition of FTL:  If all of your crew dies but you have a cloning bay on your vessel, is it immediately game over, or does the cloning bay prevent that?  Is the game smart enough to know that a damaged cloning bay and a fully dead crew means you cannot recover, but a functional one (even if temporarily without power) could revive your crew?  Also, does this answer differ between hostile ships and your own ship?  (That is, do you get to capture and loot enemy vessels that have all dead crew but have a functional cloning bay?) Using beamer \visible command inside a table, without adding vertical space When using the beamer \visible command inside a tabular environment, beamer adds an extra vertical space before the text. For example, in the following code, beamer adds an empty line before the word World in the second row. Can this be avoided?  \documentclass{beamer} \begin{document} \begin{frame}   \begin{tabular}{|p{1cm}|p{1cm}|}     \hline     1 &amp; Hello World \\     \hline     2 &amp; \visible&lt;2-&gt;{Hello World} \\     \hline   \end{tabular} \end{frame} \end{document} A Variation of the even-town odd-town problem Surface of genus $g$ does not retract to circle (Hatcher exercise) Quick directory navigation in the bash shell I would like to frequently switch between directories that are in totally unrelated paths, for example /Project/Warnest/docs/ and ~/Dropbox/Projects/ds/test/.  But I don't want to type cd /[full-path]/ all the time. Are there any shortcut commands to switch to previously worked directories?  One solution I could think of is to add environment variables to my bash .profile for the frequently used directories and cd to them using those variables.  But is there any other solution to this? Show that $n^3-n$ is divisible by $6$ using induction As homework, I have to prove that     $\forall n \in \mathbb{N}: n^3-n$ is divisible by 6   I used induction  1) basis: $A(0): 0^3-0 = 6x$ , $x \in \mathbb{N}_0$ // the 6x states that the result is a multiple of 6, right?  2) requirement: $A(n):n^3-n=6x$  3) statement: $A(n+1): (n+1)^3-(n+1)=6x$  4) step: $n^3-n+(n+1)^3-n=6x+(n+1)^3-n$  So when I resolve that I do get the equation: $n^3-n=6x$ so the statement is true for $\forall n \in \mathbb{N}$  Did I do something wrong or is it that simple? I am having trouble with the following problem.      Let $R$ be an integral domain, and let $a \in R$ be a non-zero element. Let $D = \{1, a, a^2, ...\}$. I need to show that $R_D \cong R[x]/(ax-1)$.    I just want a hint.  Basically, I've been looking for a surjective homomorphism from $R[x]$ to $R_D$, but everything I've tried has failed. I think the fact that $f(a)$ is a unit, where $f$ is our mapping, is relevant, but I'm not sure. Thanks Is the wave function of a particle re-created after a measurement stops? Command to append line to a text file without opening an editor Assuming i have a line that i want to add to a file without opening an editor.  How could i append this line  alias list='ls -cl --group-directories-first'   to this file  config.fish How can I execute `date` inside of a cron tab job? Batch/Multi rename only files with a specific number range I have a situation where I have the following:  file01.ext . . . file99.ext file100.ext . . .   And I want to (using rename ) insert the '0' for the files 01-99 (so that they become 000-099) but not modify files larger than 100. Which expression should I use and what is a good source on learning regular expressions such as these?   On Windows I would have used Total Commander's multi rename function which has a very simple renaming syntax. Are there some good alternatives for that tool (multi-rename) for Ubuntu? How is it like to live in Helsinki?  What is it like to live in Helsinki?  How is living in Helsinki?  What are the differences between these three sentences and what is the common way to ask someone for their opinion about the city they live in? Who is the eponymous Jedi in Return of the Jedi? I'm trying to fill out the skills section on my first character, but when I look at the character sheets in the Starter Set as examples of how to make a character, the skills that are circled have higher modifiers than their Dexterity or Strength or whatever should make them.  I've filled out all skills but those. What do I add to the ability modifier to get those numbers?   My abilities are Strength 13, Dexterity 14, Constitution 11, Intelligence 15, Wisdom 8, and Charisma 8. Proficiencies are Arcana, Athletics, History, Investigation and Stealth. My saving throws are Strength and Dexterity.   I just started D&amp;D and have the Player's Handbook, DM's Guide, Monster Manual, and the Starter Set. I need to create file with name is the result of the command in Solaris I need to create only one file with name is the result of the command ls -l | head -2. I can't use environment variables. The filename must contain newline symbols.  I've tried to use touch 'ls -l | head -2', but it hasn't worked. A question about causality and Quantum Field Theory from improper Lorentz transformation The Frobenius Coin Problem I am asked to prove that:       For integers $n, x,y &gt; 0$, where $x,y$ are relatively prime,        every $n \ge (x-1) (y-1)$ can be expressed as $xa + yb$, with nonnegative integers $a,b \ge0$.   How should I approach this? I have very limited knowledge in number theory. How can I calculate how long it will take to transfer a file over LAN? I want to know about the method with which we can calculate data transfer speed.   If I am sending a 1 GB file through a 1 Gb/s LAN connection, from one computer to another, how much time will it take to transfer that file? I'm looking for a shapefile containing an 1000m or 2000m UTM grid ("graticule"). All I was about to find on the web is a 10000m UTM grid (here: ) and I am aware that a 1000m UTM grid for the whole world might be quite big.  That's why I'm now wondering if and how it would be possible to generate such a shapefile for a part of the world. I would prefer to use open source tools like gdal. Others output formats than a shapefile might be ok too.   Has anyone an idea?