Make your first PR! ~ A beginner-friendly repository made specifically for open source beginners. Add your profile, a blog or any program under any language (it can be anything from a hello-world program to a complex data structure algorithm) or update the existing one. Just make sure to add the file under the correct directory. Happy hacking!
In this File 'longest_substring.java' , I have updated the function body which is effiecient solution for this program.
and same steps i have followed in File 'prime-number.java' .