M
M
MaxLich2018-05-10 10:34:17
Java
MaxLich, 2018-05-10 10:34:17

What should be done in the stringBits task on codingbat.ru?

Hello. I solve problems in Java, which are given on this resource and reached the following:

Given a string, return a new string made of every other char starting with the first, so "Hello" yields "Hlo".
stringBits("Hello") → "Hlo"
stringBits("Hi") → "H"
stringBits("Heeololeo") → "Hello"

No matter how I thought, no matter what translators I used, no matter how I tried to solve it, I still can’t understand what is required of me. Please help me to understand the problem.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Bille, 2018-05-10
@MaxLich

Judging by the examples, you need to output a string through a character starting from the first character

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question