Converting ArrayList  to String[] does not take correct elements to put into the String[]
What's the simplest way to print a Java array?
Vim: How do I search for a word which is not followed by another word? $\gcd(a,b)=1, x^a = y^b\Rightarrow x = n^b$, $ y = n^a$ for an integer $n$. If $ a$, $ b$, $ x$, $ y$ are integers greater than $1$ such that $ a$ and $ b$ have no common factor except $1$ and $ x^a = y^b$ show that $ x = n^b$, $ y = n^a$ for some integer $ n$ greater than $1$.  I started this way: $x^a=y^b$ $=&gt;$ $x=y^{b/a}=(y^{1/a})^b$. Thus $x$ is an integer, and so is $y^{1/a}$, so $y=n^a$ for some integer $n$ greater than $1$. Then from the given relation, we get $x=n^b$.   I am not very convinced with my solution, as I feel I did some mistake. Can anyone point out where the mistake is? Any other solution is also welcome :) Before I start, don't lecture me on the fact that FAT32 is old and hasn't been updated for nearly 20 years. Right now I have sorted that. I am trying to install Ubuntu Linux onto a 64GB flash drive and it wants me to format it to one of the EXT file systems.  The problem is if I put the flash drive into a Windows PC, I can't use it. I also can't install the required software onto every Windows PC that I will use. When I tried to install it on FAT32 I got an error and there is no option for NTFS.  Does anyone know how I could do this? Maybe a Windows based tool? Thanks in advance. When discussing a treaty or international agreement, which is correct?  "There are 100 states party to the treaty." (for example, as used )  Or:  "There are 100 state parties to the treaty." (for example, as used )   Or: "There are 100 states parties to the treaty."  (for example, as used ) It is suggested as an exercise in Serge Lang's book "Algebra" to show that the commutator subgroup $G^c$ of a group $G$ is a normal subgroup.   I'd like to do that but I am afraid I need help,   I think the first thing I need to figure out is how a general element in the commutator subgroup looks like, so that I can check that the defining condition for normality is satisfied.  That is, supposing for a moment that a general element in $G^c$ is denoted by $g$, I need to show that $aga^{-1} \in G^c,$ for all $a \in G$.  But here I get stuck, first because I am unsure how to write a general element in $G^c$ - a simple product in $G^c$ is of the form $xyx^{-1}y^{-1}aba^{-1}b^{-1}$ where $a,b \in G$. I cannot see a way to simplify this - I am sure there is one, but somehow I am blind today.  The second thing then is, even if one tries out the conjugation of a simple element like $xyx^{-1}y^{-1}$ in $G^c$, again not simplification offers itself easily I think .. what am I missing ?  An alternative would be to find a homomorphism of $G$ whose kernel is precisely $G^c$ - here I tried to think of this as a map $G \times G \to G$ but whatever I cook up is not a homomorphism.  Thanks for your hints !! How can I produce the text Word_one_two in LaTeX?  I tried:  Samp\_Dist\_Corr   But, it doesn't quite look right. Also, I want it in the typewriter font, so actually, I'm doing:  \texttt{Samp\_Dist\_Corr}   I find it looks a bit like the underscore is merging in to the bottom of the "D", but maybe it's just because of the typewriter D? I'm not normally a fan of mac software implementations, but recently I saw a copy of Parallels Desktop for mac that I was very much impressed by. I looked into parallel's offerings for Linux (I was initially excited that they developed for *nix) but found that it has essentially the same features as VMware.   Does anyone know if there is a software solution for linux that offers the level of integration that the current Parallels Deesktop for mac has?  I looked into wine for the programs I want to run and was very frustrated. I feel like all the ratings in their application database were fabricated honesty. I've tried wine once every Ubuntu release since 8.10 and have never gotten it to work stably. The line numbers for the text of a paragraph with an equation defined by \begin{align} command do not show as expected. How to fix this?    The LaTeX codes are attached here.   \documentclass[a4paper, 12pt]{article} \usepackage[utf8]{inputenc}    % Use the UTF-8 encoding \usepackage{amsmath}           % For the use of math \usepackage{amsfonts} \usepackage{amssymb}           % For the use of AMS symbols \usepackage{indentfirst}       % For indentation \usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry}  \usepackage{lineno} \linenumbers  \usepackage{titlesec} \titleformat*{\section}{\large\bfseries} \titleformat*{\subsection}{\normalsize\bfseries} \titleformat*{\subsubsection}{\normalsize}   \renewcommand{\baselinestretch}{1.5}    \usepackage{authblk}           % Use author package \renewcommand*{\Authfont}{\large} \renewcommand*{\Affilfont}{\normalsize\normalfont}  \makeatletter \g@addto@macro\normalsize{%   \setlength\abovedisplayskip{0pt}   \setlength\belowdisplayskip{0pt}   \setlength\abovedisplayshortskip{0pt}   \setlength\belowdisplayshortskip{0pt} } \makeatother  \title{\textbf{Globally cumstomize the spacing between the text and equation}}    \date{}  \begin{document}  \maketitle  \section{Air filter} The air filter is simulated by the Control Valve module (AFT in Fig. 2(a)). The pressure drop through the air filter ($ \Delta P_{af} $) is given by the following equation [11,16]. \begin{align} \Delta P = \Delta P_{d} \left( \frac{m}{m_{d}}\right)^{1.84}  \left( \frac{T}{T_{d}}\right)  \left( \frac{P}{P_{d}}\right)^{-1}  \end{align} where, $ \Delta P_{af} $ is the pressure drop, $ m $ is the mass flow rate, $ T $ is the temperature, and $ P $ is the pressure, and subscript $ d $ denotes the design condition.  \newpage \section{Air compressor (AC)} The AC operating characteristics can be described by its performance map, which relates the following dimensionless operational variables. The AC operating characteristics can be described by its performance map, which relates the following dimensionless operational variables. \begin{align} &amp; \text{Relative pressure ratio:} &amp;&amp; PR_{r} = \frac{PR-1}{PR_{d}-1}\\ &amp; \text{Relative isentropic efficiency:} &amp;&amp; \eta_{r} = \frac{\eta}{\eta_{d}} \\ &amp; \text{Relative corrected mass flow:} &amp;&amp; m_{cor,r} = \frac{\left(\frac{m_{in}}{P_{in}}\sqrt{T_{in}}\right)}{\left(\frac{m_{in,d}}{P_{in,d}}\sqrt{T_{in,d}}\right)} \\ &amp; \text{Relative corrected speed:} &amp;&amp; N_{cor,r} = \frac{\left(\frac{N}{\sqrt{T_{in}}}\right)}{\left(\frac{N_{d}}{\sqrt{T_{in,d}}}\right)} \end{align} where, $ \eta $ is the efficiency, $ N $ is the shaft speed, and $ PR = P_{in}/P_{out} $. Subscript $ cor $ denotes the corrected value, $ r $ denotes the relative value, $ in $ denotes the inlet, and $ out $ denotes the outlet.  \end{document} Given (p ∧ q), use the Fitch system to prove (q ∨ r) I'm having trouble solving a Fitch Style Proof and I was hoping someone would be able to help me.  Premises: p ∧ q  Goal: q ∨ r  Would be an assumption (p ∧ q => q ∨ r) in first step a correct one?   Then, q ∨ r Implication Elimination: 2, 1  Why is it not correct?  Thank you very much for any help! You should choose your Display Name when signing up When a user signs up , their username is something along the lines of "user########"  Granted, in the welcome email it does say something along the lines of "Head over to your user account page to chose a display name!", however only a few people actually read that email.  I'm not saying we should restrict people from changing their display name again in the future - Everyone would still be able to do so. It's just that when you sign up you choose an initial display name that will be what your first display name is instead of "user########". What exactly is TLP doing that default system config wouldn't? All the info about TLP on the surface looks more like advertisement and marketing to me, I can't see any detailed comparison to default configurations. What are the precise differences compared to default (K/L)Ubuntu installs under the hood, are they really effective?  Update: And if they really are, why aren't they a part of a default config? I've just started using TikZ and need to create a simple triangle commutative diagram like this one.    The closest I've been able to get is this.   How do I get the h arrow to go from A2 to A3? Everything I've tried just causes errors.  Here's my current code:  \begin{tikzcd}[column sep=small] A \arrow{r}{i}  \arrow{rd}{g}    &amp; A3 \arrow{d}{h} \\     &amp; A2 \end{tikzcd} I am trying to find the equation of characteristic curves and solution of the partial differential equation $$x\frac{\partial u}{\partial y}-y\frac{\partial u}{\partial x}=u$$ $u(x,0)=\sin(\frac{\pi}{4}x)$ .   What I did: $$\frac{dx}{-y}=\frac{dy}{x}=\frac{du}{u}$$ with  From first two equalities $$\frac{dx}{-y}=\frac{dy}{x}$$ by solving we get $x^2+y^2=c_1$ for some constant $c_1$. Now I am stuck with the third and rest of the equalities to come up with a suitable manipulation to solve the problem. How can I do this? Any help would be great. Thanks. Several companies are commercializing tests for telomere length such as this one . I understand the basic mechanism for why telomeres shorten during DNA replication, but how good is the evidence that telomere length is a reliable indicator of healthspan/lifespan? Does a creature with Lifelink provide lifegain equal to its power, or the defender's toughness? Box around single element in list Is there any way in latex to create a simple box around one item in a list?  I tried both \framebox, and \fbox, none of them worked  \begin{enumerate}[label=\Alph*),ref=\Alph*] {\color{red}\item null.}  \item lik vektdifferansen $GT - GK$. \item lik vektsummen $GT + GK$. \item lik vekten av $K$. \end{enumerate}   Works, but   \begin{enumerate}[label=\Alph*),ref=\Alph*]  {\color{red}  \fbox{ \item null.} }   \item lik vektdifferansen $GT - GK$. \item lik vektsummen $GT + GK$. \item lik vekten av $K$. \end{enumerate}   Does not. So yeah, any way to box a single entry in a list? I was going through the topic "formation of comparative and superlative".       The rule says     When two objects are compared with each other, the latter term of comparison must exclude the former, as in "Iron is more useful than any other metal". If we say "Iron is more useful than any metal", that is the same thing as saying    "Iron is more useful than iron", since iron is itself a metal.   I am finding difficulty to relate the rule with example. Where can the viewport clipping parameters be changed? Zooming in to inspect texture details in 3D view clips some closer faces like shown in the image. It's not the camera view so changing camera settings doesn't help.   Where can the distance to the clipping plane be adjusted? I want to be able to tell if the mains voltage is on or off with an Arduino.   How could I do this safely with minimal components (or components from Radio Shack)? Celebrating the same new year several times over?