Java

 22 July 01:42   

    Here is the [http://en.wikipedia.org/wiki/ Java _programming_language Java wikipedia entry].

    Java is a full, procedural, acquisitive language.

     accessible changeless abandoned main(String args[])

    The archetypal account is completed by a semi-colon. For the appointment of b to a use:

     a = b;

     // this is an inline comment. Aggregate afterwards the // is a comment.

    Block comments are defined by a starting / /

     int x = 9;

     Accumulation y = new Integer(4);

     // declaration

     clandestine return_type class_name::function_name(argument_1_type arg_1_name,

     argument_2_type arg_2_name,

     default_argument_type default_arg_name)

    Scope is authentic by coiled braces.

    If and alone if A is according to B accredit C to D, otherwise, accredit E to F.

     if( A B )

     D = C; //more curve of cipher are not acceptable afterwards this statement

     else

     F = E;

    Alternatively, a about-face account can be acclimated for assorted best operations. This sample converts a amount ascribe to text.

     switch( number_value )

    This cipher counts from 0 to 9, abacus up the capacity of the array.

     int i = 0;

     for( int basis = 0; basis < 10; basis = basis + 1 )

    This cipher repeats until the amount 4 is found. If this runs off of the end of the array, there could be a problem.

     int basis = 0;

     while( 4 != array[index] )

    This cipher increments the adverse afore the analysis is made, so that it starts with aspect 1.

     int basis = 0;

     do

     while( 4 != array[index] );

     System.out.println( Accost World! );

    Containers accede from the Accumulating class. See the java.util amalgamation for specific containers including List, LinkedList, Queue, Stack, Concordance and HashMap.

    The Accumulating chic has algorithms like sort.

    Garbage accumulating is automatic.

    Code is about kept in files with a .java extension. It is aggregate into Java byte cipher into files with .class extensions.

     = // assignment

     == // comparison, is according to

    Often using the one you dont wish will compile, and will aftermath after-effects you did not expect.

    paper references here

    

 


Tags: array, argument, class, statement, collection, index

 index, array, class, collection, argument, statement, , int index,

Share Java: Digg it!   Google Bookmarks   Del.icio.us   Yahoo! MyWeb   Furl  Binklist   Reddit!   Stumble Upon   Technorati   Windows Live   Bookmark

Text link code :
Hyper link code:

Also see ...

Permalink
Article In : Reference & Education  -  Book