#Java help
61 messages ยท Page 1 of 1 (latest)
โ This post has been reserved for your question.
Hey @worn shale! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
what have you gotten so far
@digital stirrup
right so start by making some structure to hold your output
then you need to add to that within a loop of some kind
I am sorry but where/how
you need to start at the character given
๐
for (start, end, increment) is the general format
you want each character, so increment can just be ch++
try to figure out what start and end are
hint: ||the variable doesn't need to be an int. the other primitives also have numerical values.||
.
and also , you want to start at the char that was the input
'a' should be the word 'character' instread
sure
then?
what do you have now
yeah
but right now you're just printing out the character
you need to store it so you can return it all together
in the loop
(also range isn't used, you can remove that)
while loop?
no, use the loop you already have
you don't need to print it out from this method, you need to get the characters and return it as a string
you have checks to prevent that, don't you?
yes
so you don't have to worry about it
how would i start it
wdym
I am so confused eventually we return SB
but we need to craete a loop to store all the letter to go into sb
Could your write a bit of the code out
you have the loop already
I know