I used the fact that $\displaystyle \int_0^\infty\int_0^1 e^{-y}\sin(2xy)\,dxdy=\int_0^1\int_0^\infty e^{-y}\sin(2xy)\,dydx$ to solve $\displaystyle\int_0^\infty e^{-y}\frac{\sin^2(y)}{y}\,dy$. (The answer is $\frac{1}{4}\ln(5)$)
But why can I use Fubini's theorem in this case?
Since $$ \int_0^1\int_0^\infty| e^{-y}\sin(2xy)|\,dydx<\int_0^1\int_0^\infty e^{-y}dydx=1 $$ By Fubini's theorem, you can switch the order of integration.