Question: 1. Please help me to pass the problems ; https://codecheck.it/files/1810202149e3seqx49fh2dpm44d1072mxnt 2. Also, please teach me the code of the photos #1 and 2. /** *

1. Please help me to pass the problems ; https://codecheck.it/files/1810202149e3seqx49fh2dpm44d1072mxnt

2. Also, please teach me the code of the photos #1 and 2.1. Please help me to pass the problems ; https://codecheck.it/files/1810202149e3seqx49fh2dpm44d1072mxnt 2. Also,

/** * PQ07 Sample Problem. * @author * @version */ public class PQ07S { /** * Write the method sumDigits(). * * The method has one input, a String str, and * returns the sum of the digit characters in the * String. A digit is in the interval [0..9]. You * can convert a digit to an integer by subtracting * '0' (notice this is the char value '0', not "0" or 0). * However, if a digit is a 7, it counts as a 2. * Use a for loop, the charAt() and length() String * methods and if statements. Do not use any other * methods, such as Integer.parseInt() or * Character.isDigit(). If there are no digit characters * in the String, return 0. * * Examples: * sumDigits("aa1bc2d3") returns 6 * sumDigits("aa11b33") returns 8 * sumDigits("Chocolate") returns 0 * * @param str the string to process. * @return the numeric sum as described above. */ // TODO - Write the sumDigits method here.

}

1 THE WoRD ENDS PROBLEM Given a string and a non-empty word string, return a string made of each char just before and just after every appearance of the word in the string. lgnore cases where there is no char before or after the word, and a char may be included twice if it is between two words. Do not do any printing. .for input of "abcXY123XYijk", "XY""C131" for input of "XY123XY", "XY" "13" .for input of "XY1XY", "XY""11" 2 THE PLUs OUt PROBLEM Given a string and a non-empty word string, return a version of the original string where all chars have been replaced by pluses ("-"), exceptor appearances of the word string which are preserved for of "12xy34", . for input of "12xy 34", "1" -"1+++" input of "12xy34xyabcxy", input "xy" "++xy++" for "Xy" "++xy++xy xy

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!