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
joelynempleo
4,659 PointsTrouble 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.
Alejandro Calzada
3,880 PointsAlso, unlike the exercise it is not 'mystring' but 'aString' and then copy the rest from the video and you should be fine.
joelynempleo
4,659 PointsThank You
1 Answer
Jack Solomon
839 PointsIf you want to then make it an integer, go:
int myStringLength = myString.length;
joelynempleo
4,659 Pointsthank you
Alejandro Calzada
3,880 PointsAlejandro Calzada
3,880 PointsI 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.