I was writing a bibliography. At a point, some extra spaces appear. I couldn't fix it anyhow.

\begin{thebibliography}{90}
\bibitem{Ref1} Java, \url{https://en.wikipedia.org/wiki/Java_(programming_language)}
\bibitem{Ref2} James Gosling, \url{https://en.wikipedia.org/wiki/James_Gosling}
\bibitem{Ref3} Java Compiler, \url{https://www.jdoodle.com/online-java-compiler/}
\bibitem{Ref4} Escape Sequence, \url{https://docs.oracle.com/javase/tutorial/java/data/characters.html}
\bibitem{Ref5} Format-Specifier, \url{https://www.geeksforgeeks.org/format-specifiers-in-java/}
\end{thebibliography}
xurlinstead ofurl: arbitrary breaks in URLs are much better than huge strips of white space. – egreg Jul 15 '22 at 17:16