i'm angry because i don't good at the basic java.So,I'm working hard on studying basic java now.First,i bought a book in the culture market yesterday.
In the following part of this passage,i will write something about Data-Structures.
1,About method LENGTH.
I believe many people think that LENGTH is a method.Oh,that's a shame.
In fact,LENGTH is not a method.You can use LENGTH directly.For example
,<
Number.length>.
2,About method CLONE.
You needn't exchange compulsively in JDK5.0.Clone is not copy,the thing you cloned is diffent from the original one.They are independent.For example,Code 1.1.
Code 1.1 :
package array;
class ex1{
public static void main(String[] args) {
int [] a,b;
a=new int[10];
a[5]=0;
b=a.clone();
a[5]=42;
System.out.println(b[5]);
}
}
solution is : 0
contact:coolboyyang@gmail.com
分享到:
相关推荐
Basic MySQL Reference. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513 Creating or Dropping a Database. . . . . . . . . . . . . . . . . . . . . . 514 Creating or Dropping a Table. . ...
included with the 1.2.1 version of the Java 2 Platform, Enterprise Edition (J2EE), so it is still commonly used. The version of the JavaMail API you want to use affects what you download and install...
The Way to Go,: A Thorough Introduction to the Go Programming Language 英文书籍,已Cross the wall,从Google获得书中源代码,分享一下。喜欢请购买正版。 目录如下: Contents Preface......................
Other books in the series use languages like Java and Python, but all focus on concepts and not on any particular language. The presentation of the material is the same in each language, and much of ...
When we have a closely related data of the same type and scope, it is better to declare it in an array. Multidimensional array java A two dimensional array can be thought as a grid of rows and ...
1.2.8 Programming in Go......................................................................................10 1.2.9 Summary.............................................................................
Encodes the specified URL for use in the sendRedirect method or, if encoding is not needed, returns the URL unchanged. encodeUrl(String) - Method in class javax.servlet....
XML shortcut with the p-namespace .......................................................... 44 XML shortcut with the c-namespace .......................................................... 46 Compound...
XML shortcut with the p-namespace .......................................................... 44 XML shortcut with the c-namespace .......................................................... 46 Compound...
- ADD: In the module FlexUtils added the constant BooleanWords - an array containing the words 'false' and 'true' for saving/reading TBoolProp. - ADD: In the module FlexUtils added the function ...
Another useful rule of thumb: it's typically not cost effective to inline functions with loops or switch statements (unless, in the common case, the loop or switch statement is never executed)....
We'll also go over the basic syntax of Swift and how to use Playgrounds to experiment and test the Swift code. Chapter 2, Learning about Variables, Constants, Strings, and Operators, introduces you ...
This book will teach you how to develop JavaScript applications with simple to use, yet powerful JavaScript technologies and host everything in the cloud in an economic and robust way in AWS. ...
The user should be able to use and control the tablet in as natural and easy a manner as possible. The user's preferences should take precedence over application requests, where possible. Here are ...
Python参考手册,官方正式版参考手册,chm版。以下摘取部分内容:Navigation index modules | next | Python » 3.6.5 Documentation » Python Documentation contents What’s New in Python ...PEP 343: The ‘with...
I can't say much more about it except for the fact that its fast and compact<END><br>51,chexer.zip As Jonathan wrote, "This is a tool I wrote to use in DevStudio to facilitate memory address ...
In Unix, you can use the Perl function fork to start a new process and communi- cate with it after setting up a pipe (a pipe works like a pair of connected file handles) with the pipe function. In ...
- **Pointers, Handles, and Null**: Section 8.2.5 explores the use of pointers, handles, and null in C++/CLI. - **Parameters**: Section 8.3 discusses parameters in functions and methods. - **Automatic...