Update Main.java

changed endpoint urls