ex11: return value of replace arbitrary

0b101101101
Endlosschleifenbastler
Endlosschleifenbastler
Beiträge: 179
Registriert: 15. Apr 2015 18:24

ex11: return value of replace arbitrary

Beitrag von 0b101101101 » 5. Feb 2018 18:12

The return value of the replace method is not specified.

Arthur
Neuling
Neuling
Beiträge: 5
Registriert: 4. Dez 2017 12:39

Re: ex11: return value of replace arbitrary

Beitrag von Arthur » 5. Feb 2018 18:44

Hey,

if you mean the replace method in Formula class, I can see its return type set to Boolean in the project template.

Regards

0b101101101
Endlosschleifenbastler
Endlosschleifenbastler
Beiträge: 179
Registriert: 15. Apr 2015 18:24

Re: ex11: return value of replace arbitrary

Beitrag von 0b101101101 » 6. Feb 2018 11:31

That leaves two possible values: true and false. Also i just noticed, that the task didn't say, that the value should be replaced everywhere, as the second task seems to imply that you should just do it once.

Antworten

Zurück zu „Archiv“