Q: Get a 5 gallon (18.9L) cylindrical bucket and cut a hole for a 3/4 PVC pipe at the bottom. Turn the bucket upside down and fit a piece of 24" PVC pipe through the hole, leaving about 6" of space at the bottom. Use silicon or caulk to seal any gaps. Place this structure on a large piece of spare plywood, and then center a 12" wide piece of concrete forming tube around the bucket. This is your form for the base and will be filled with quick-set concrete. Fill it until the bucket has at least 2" of material covering it and then give it a shake to remove bubbles. Let it set according to the manufacturer's instructions. Get a glass light fixture globe, spray the inside with cooking spray and then fill it to the top lip with concrete. Tape off the end of a PVC tube and shove the taped end down through the center of the ball so that it sits snugly against the glass. Tape it in place until the concrete sets. Break both pieces out of their forms and use a flexible saw to cut off the extra PVC pipe. Dig a shallow hole big enough to get a plastic garden basin in. Fill it part way with river stones set a 100155 gallon (586.7L)-per-hour pump into the rocks and then cover the pump with a layer of rocks. Run 1/2" vinyl tubing from the pump and, with the base tipped on it's side, up through the PVC pipe. Tip the base into place and then insert the tubing through the ball. Cut off the excess tubing that protrudes from the ball and then remove the ball in order to trim the tube so that it will fit just below the lip of the ball. Return the ball to it's location and this time secure it in place with some adhesive silicon. Pour water into your basin and then start the pump. Ta-da! Your garden fountain is done!
A: Build your base. Build the ball. Break the forms. Create the basin. Insert the tubing. Trim the tubing and secure the ball. Add water and turn on the pump.

Q: Splitting a string in Java means to split a string by a certain delimiter into an array of substrings. For example, if I split the string "red,blue,green,yellow,pink" with a comma as the delimiter, I would get the array { "red", "blue", "green", "yellow", "pink" }. Here are three different ways to split a string. Import java.util.StringTokenizer. Then create a new instance of a StringTokenizer with the string to tokenize and the delimiter as parameters. If you do not enter the delimiter as a parameter, the delimiter will automatically default to white space. After you have the StringTokenizer, you can use the nextToken() method to get each token. import java.util.Arrays; import java.util.StringTokenizer; public class StringManipulation { public static void main(String[] args) { String str = "red,green,blue,yellow,pink"; StringTokenizer tokenizer = new StringTokenizer(str, ","); int numberOfTokens = tokenizer.countTokens(); String[] splitArr = new String[numberOfTokens]; for (int i = 0; i < numberOfTokens; i++) { splitArr[i] = tokenizer.nextToken(); } System.out.println("
Original String: " + str); System.out.println("Split Array: " + Arrays.toString(splitArr) + "
"); } } Before Java 1.4, the StringTokenizer class was used to split strings in Java. But now, the use of StringTokenizer is discouraged and the use of the split() method in the String class or the use of the java.util.regex package is encouraged. The split() method will take in the delimiter as a param and return an array of sub-strings that are the same as the tokens from the StringTokenizer. import java.util.Arrays; public class StringManipulation { public static void main(String[] args) { String str = "red,green,blue,yellow,pink"; String[] splitArr = str.split(","); System.out.println("
Original String: " + str); System.out.println("Split Array: " + Arrays.toString(splitArr) + "
"); } } Import java.util.regex.Pattern. Use the compile() method of the Pattern class to set the delimiter and then give the split() method the string that you want to split. The Pattern will return an array of substrings. import java.util.Arrays; import java.util.regex.Pattern; public class StringManipulation { public static void main(String[] args) { String str = "red,green,blue,yellow,pink"; String[] splitArr = Pattern.compile(",").split(str); System.out.println("
Original String: " + str); System.out.println("Split Array: " + Arrays.toString(splitArr) + "
"); } } Here is the output that results from any one of these methods for splitting strings.
A:
Understand what it means to split a string. Use StringTokenizer to tokenize the string. Use the String class's split() method. Use regular expressions to split the string. Review your output.