GitHub Viewer
package Strings;
// Always remember Strings are Immutable that means ek bar string input karne ke bad change nhi kar sakte
public class StringMethod {
/*
// ParseInt method of Integer Class
public static void main(String[] args) {
String str = "12345";
int number = Integer.parseInt(str);
System.out.println(number);
}*/
public static void main(String args[]) {
int number = 125;
String str = Integer.toString(number);
System.out.println(str.length());
}
}