End Code Function Python Format Methods In Java