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

Java Java Objects (Retired) Creating the MVP Prompting for Guesses

Niyamat Almass
Niyamat Almass
8,176 Points

What is "char" ?

Please can anybody tell me what is "char''? And , someone please describe me the video clearly!!!!!!!!!!!!!!!!

Adiel Danda
Adiel Danda
6,375 Points

A char in Java is a data type to represent a single character. If this can help, you can view a String (which is also another data type in java) as an array/combination/grouping of char.

For example lets take your name "Niyamat", it is made up of 7 characters (char). You can look at each keyboard entry as a char.

2 Answers