In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
What this article shares to you is about how to carry on the java string brief introduction, the editor thinks is quite practical, therefore shares with you to study, hoped everybody after reading this article can have the harvest, does not have much to say, follows the editor to have a look together.
Java string
You may have noticed that strings or string data types were not mentioned in the previous discussion of data types and arrays. This is not because Java does not support such a type, it does. Just because the string type of Java, called String, is not a simple type, nor is it a simple character array (in C _ String +). A string (String) is defined as an object in Java, and to fully understand it requires understanding several characteristics related to the object. Therefore, the discussion of strings (String) is placed later in the book, and we will talk about strings (String) after the object is described. However, in order to use simple strings in the example program, the following is simply described in order.
The String type is used to declare string variables. You can also define an array of strings. A string literal enclosed in quotation marks can be assigned to a string variable. A variable of one string type can be assigned to a variable of another string type. You can use the String type as you would with the parameters of the method println (). For example, consider the following statement:
String str = "this is a test"
System.out.println (str)
Here, str is an object of type String, which is assigned to the string "this is a test", which is displayed by the println () statement. As you will see later, string objects have many special features and attributes, which make them very powerful and easy to use. However, in the next few chapters, you can only use their simplest form.
The above is a brief introduction to the java string, and the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.