`
coolstar648
  • 浏览: 46209 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

About the basic use with array in java.

阅读更多
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
分享到:
评论

相关推荐

    php_6_fast_and_easy_web_development.pdf

    Basic MySQL Reference. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513 Creating or Dropping a Database. . . . . . . . . . . . . . . . . . . . . . 514 Creating or Dropping a Table. . ...

    Java邮件开发Fundamentals of the JavaMail API

    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...

    [Go语言入门(含源码)] The Way to Go (with source code)

    The Way to Go,: A Thorough Introduction to the Go Programming Language 英文书籍,已Cross the wall,从Google获得书中源代码,分享一下。喜欢请购买正版。 目录如下: Contents Preface......................

    Programming.Concepts.in.Cplusplus.1499044836

    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 ...

    JSP Simple Examples

    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 ...

    The way to go

    1.2.8 Programming in Go......................................................................................10 1.2.9 Summary.............................................................................

    servlet2.4doc

    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....

    spring-framework-reference4.1.4

    XML shortcut with the p-namespace .......................................................... 44 XML shortcut with the c-namespace .......................................................... 46 Compound...

    spring-framework-reference-4.1.2

    XML shortcut with the p-namespace .......................................................... 44 XML shortcut with the c-namespace .......................................................... 46 Compound...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    - 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 ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    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)....

    Mastering Swift 4, 4th Edition-Packt Publishing(2017).pdf

    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 ...

    JavaScript Applications with Node.js, React, React Native and MongoDB

    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 ...

    python3.6.5参考手册 chm

    Python参考手册,官方正式版参考手册,chm版。以下摘取部分内容:Navigation index modules | next | Python » 3.6.5 Documentation » Python Documentation contents What’s New in Python ...PEP 343: The ‘with...

    VB编程资源大全(英文源码 其它)

    I can't say much more about it except for the fact that its fast and compact&lt;END&gt;&lt;br&gt;51,chexer.zip As Jonathan wrote, "This is a tool I wrote to use in DevStudio to facilitate memory address ...

    193_4ECH.PDF

    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 ...

    C++_CLI标准.pdf

    - **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...

Global site tag (gtag.js) - Google Analytics