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 trialNiyamat Almass
8,176 PointsWhat is "char" ?
Please can anybody tell me what is "char''? And , someone please describe me the video clearly!!!!!!!!!!!!!!!!
2 Answers
William Li
Courses Plus Student 26,868 PointsA char is a single character in Java
Niyamat Almass
8,176 PointsThank you!!!!!!please tell me the second part of my question!!!!!!!!!
William Li
Courses Plus Student 26,868 Pointscan you tell me which part of the video you don't understand?
Niyamat Almass
8,176 Pointsthe prompter
Niyamat Almass
8,176 Pointsthanks
Adiel Danda
6,375 PointsAdiel Danda
6,375 PointsA 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.