Answers for "java converting to int"

1

string to int

num = '10'
  
# check and print type num variable
print(type(num)) 
  
# convert the num into string 
converted_num = int(num)
  
# print type of converted_num
print(type(converted_num))
  
# We can check by doing some mathematical operations
print(converted_num + 20)
Posted by: Guest on April-04-2022

Code answers related to "java converting to int"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language