KCE / Java

Java Programming Language
0 stars 3 forks source link

CoreTask#8: ConvertToBase10 - Submit Your Code #33

Open ErSKS opened 5 years ago

ErSKS commented 5 years ago

Write a method named convertToBase10 that converts its <array, base> arguments to a base 10 number if the input is legal for the specified base. If it is not, it returns -1.Your convertToBase10 method must call the isLegalNumber method. Function signature is: int convertToBase10(int[ ] a, int base)