Consider two threads with access to the String STR.
考虑两个线程访问String str。
For example, if I have a method called draw (String STR), an overloaded version can have the following form: draw (String STR, int I).
例如,如果有一个名为draw (String str)的方法,那么重载的方法可以有以下形式:draw (String str, int i)。
In fact, a string object is an instance of the STR class.
事实上,字符串对象是str类的一个实例。
So STR, which I just typed up there, takes in parens, some input, and it converts it into a string, so that now I can use that John where I was expecting a string. John.
因此STR,也就是,我刚刚输入的,然后把这个输入变更为一个字符串,因此现在我就能,在需要用字符串的地方使用这个对象了。
应用推荐