99.4k views
4 votes
Write a method sameDashes that takes two Strings as parameters and that returns whether or not they have dashes in the same places (returning true if they do and returning false otherwise). For example, below are four pairs of Strings of equal length that have the same pattern of dashes. Notice that the last pair has no dashes at all.

User Dronik
by
7.3k points

1 Answer

5 votes

Answer:

Slime mold belongs to this category: Protista. Shows absence of cell wall, though chloroplasts may be present: Euglenozoa. Presence of flagella: Zoomastigina. Enclosed by a membrane called a pellicle: Sarcodina. Feeds on decaying matter: Myxomycota. Absence of cell wall as well as chloroplasts: Apicomplexa.

User Slawomir Dziuba
by
7.2k points