Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Raf Men
Added: Jan 1, 2021 5:05 PM
Views: 5
Tags: no tags
  1. String a = String.valueOf(2);   //integer to numeric string
  2. int i = Integer.parseInt(a); //numeric string to an int