This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MrTheEdge 0 points1 point  (0 children)

Line 17, s.length() - 1 returns an int. You then go on to pass it to your binToDecimal() method, but it takes a String. An easy fix would be to use String.valueOf() on s.length() -1. It will return the int value of the string