Question
Instructions Today you are going to finish off a method described below. Your work isn't wasted... maybe you could make use of this one in
Instructions
Today you are going to finish off a method described below. Your work isn't wasted... maybe you could make use of this one in your assignment? If you already have? Voil, it's all that much easier! (It's STILL due this coming Sunday!)
Details of splitText() method
/** * ====Method for you to complete==== * This method will receive a string. It will split the string into * a string array such that each of cell contains the individual * characters that make up the string (text) provided. * * @param text String * @return String array of individual characters that * make up the string (text) provided */
Input: Parameters
The method will take the following parameters:
- a string (text): some string to be split (e.g. "R6" or "B4" or "Angela")
Processing
- Split the string provided into its individual characters and use these to populate a string array that you will return.
Output: Return value
The method will return the string array containing each of the individual characters that made up the string provided as input. (All program output, from the main method, is handled for you.)
Sample method input/output:
splitText() Input arguments | splitText() Return value |
"B6" | {"B", "6"} |
"R3" | {"R", "3"} |
"Angela" | {"A", "n", "g", "e", "l", "a"} |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started