Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Trouble finding an answer! Find out the length of this newly created string.

Find out the length of this newly created string. Class Interface challenge step 2.

I am not in front of my laptop but try to write code that is in between brackets and don't forget the ';'. Will look into notes later if this does not help. Give a shout out if whether your successful or not.

Also, unlike the exercise it is not 'mystring' but 'aString' and then copy the rest from the video and you should be fine.

Thank You

1 Answer

If you want to then make it an integer, go:

int myStringLength = myString.length;

thank you