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

Android Build a Simple Android App (2014) Getting Started with Android Introducing Android and Java

Can you give another example of string

Please give another example of string

1 Answer

Anything that you can write as text and for arithmetic evaluation, are strings.

Examples include:-

String favourit_letter = "p";
String lucky_prime = "1";
String text = "Hey , when r u coming?";
String continent = "South-East Asian";
String question  = "How many are you looking for?";
String answer    = "I am not sure just keep showing more";
String password = "CFUHjjosb729~";
String pasID       = "12798440570583643474";
String lie     = "False";

String empty = "" // this is an empty string.

Generally strings include, all numbers 0-9, punctuation marks, alphabet letters from a-z and A-Z, special character .. The rule is they should always be in quotation marks, otherwise it will mean other things.

Sting of characters.

Enjoy.