Hello! I am paypal ready to pay somebody 10$ to solve these three simple java questions. Will bump up the price if you are fast and persistent.
1. Given a String str1, write a segment of Java code that will count and print out the number of digits (0,1,2,3,4,5,6,7,8, and/or 9) in str1. For example if str1 = "We won, 31 - 17", then your code would print 4. Your code MUST be general
this is one of the three.