Java Program to find the sum of two integers of different bases .
import java . util . * ; class GFG { static int val ( char c ) { if ( c >= '0' && c <= '9' ) return ( int ) c - '0' ; else return ( int ) c - ' A ' + 10 ; } static int convert ( String num , int bases ) { int len = ( num . length ( ) ) ;