Instructions:
- Fork the repository.
- Clone the repository to your local machine.
- Create a new branch named
Feature01.
Preamble:
- In the game of Scrabble, each player possesses a set of tiles with letters on them. The objective is to use these letters to form words, and the scoring system is based on the complexity of the words. Longer words generally yield higher scores. Imagine you have your set of tiles represented as a string, such as "quijibo," and you are provided with another string to test, like "jib."
Objective:
- Write a method named
canSpellthat takes two strings as parameters and checks whether the set of tiles can be used to spell the given word. Note that you may have more than one tile with the same letter, but each tile can be used only once.
Code:
- In the file CanSpell.java, implement the
canSpellmethod in the provided Java code. - Test your implementation with different sets of tiles and words.
Follow these steps for submission:
- Create a Feature01 branch of your code if you haven't already.
- Commit your working code for the exercises to your local copy/Feature01 branch.
- Push it to your Remote/origin branch (i.e., GitHub: Feature01 -> origin/Feature01).
- Issue a Pull request to my instructor repo.
- Make sure to COPY the Pull request URL and submit it for the lab/assignment in Canvas.