I know that there are solutions on the internet, but I tried it myself first and wanted to ask whether my approach is valid.
Prove that the finiteness of $E[X]$ is equivalent to the finiteness of $E[|X|]$. Note that the finiteness of $E[X]$ means that $|E[X]| < \infty$, which implies proving $|E[X]| < \infty \iff E[|X|] < \infty$. Use the fact that $X^+ = X$ for $X \geq 0$ and $X^- = -X$ for $X < 0$.
I tried the following:
$$ X = X^+ - X^- \quad \text{and} \quad |X| = X^+ + X^- $$
$$ |E[X]| = |E[X^+] - E[X^-]| \leq |E[X^+]| + |E[X^-]| $$
$$ E[|X|] = E[X^+ + X^-] = E[X^+] + E[X^-] = |E[X^+] + E[X^-]| \leq |E[X^+]| + |E[X^-]| $$
Using the triangle inequality twice. Then I would argue $|E[X]| < \infty \iff E[|X|] < \infty$ follow, due to the fact that both have the same upper bound. But I am unsure whether the following step was valid: $E[X^+] + E[X^-] = |E[X^+] + E[X^-]|$. My thought was that both $X^+$ and $X^-$ must be positive by definition in the task.