Skip to main content

Posts

Showing posts with the label long

Convert String to Long

Is it possible to convert a String to long without using java's built in function? For instance: String s = "35"; long ans = Long.parseLong(s); How can you carry out the same task without using java's Long.parseLong function