-6
public class testcount {
    public static void main(String[] args) {

        int c;
         String test = "ABCD1234";

    }
}

How can I convert from String test to int c and the answer is 1234?

JasonMArcher
  • 14,195
  • 22
  • 56
  • 52

1 Answers1

0

convert int to string with int c = Integer.parseInt(str);

user3469811
  • 676
  • 1
  • 5
  • 17