string ke int java
String number = "10";
int result = Integer.parseInt(number);
System.out.println(result);
Copy
Tame Thrush
String number = "10";
int result = Integer.parseInt(number);
System.out.println(result);
Copy
int intTemp = Convert.ToInt32(Console.ReadLine());
String year = "2022";
int a = Integer.parseInt(year);
var text = '42px';
var integer = parseInt(text, 10);
// returns 42
int i=Integer.parseInt("200");
String str = "ab";
char[] ch = str.toCharArray();
System.out.println("position 0 = " + (int)ch[0]);