Showing posts with label Number dilemma. Show all posts
Showing posts with label Number dilemma. Show all posts

Sunday, June 19, 2022

 Number dilemma


Problem Statement

Nobita likes a number if it is stored in an integer while Doraemon likes it when it is stored in a String. Your task is to write a code so that they can easily convert an integer to a string or a string to an integer whenever they want.

static int StringToInt(String S){
return Integer.parseInt(S);
}

static String IntToString(int N){
return String.valueOf(N);
}

ads vert

Basic HTML Tables - Layout, HTML Tables, Attributes, Aside, Footer, Tr tag, Td tag, Th tag, Tbody

  Basic HTML Tables - Layout, HTML Tables, Attributes, Aside, Footer, Tr tag, Td tag, Th tag, Tbody < table >      < thead >    ...