Java

24
2248 reads

February 2, 2013

for-each Construct on Arrays


This example demonstrates the for each way of looping in an Array.

395
4480 reads

February 1, 2013

Accesing Arrays using For-Each Loop


This example demonstrates accessing arrays using for loop.

203
3266 reads

February 1, 2013

36
2214 reads

February 1, 2013

37
2499 reads

January 31, 2013

valueOf


Demonstrates the usefulness of valueOf method in String class.

25
2298 reads

January 31, 2013

trim Method


This example demonstrates the trim function of Strings. It can really handy to deal with whitespaces in a user's input when not needed.

79
2184 reads

January 31, 2013

String to int and backwards


This example shows the integer to string and string to integer possibilities.

25
2389 reads

January 30, 2013

Array Copying


This example demonstrates the arraycopy function in the Java library.

51
2343 reads

January 30, 2013

Arrays and Strings


This example demonstrates String arrays, how to initialize them and how to traverse them with a while loop.

34
2461 reads

January 30, 2013

2D Arrays Initialization


This example describes a 2D array, and how to initialize them with a set values. Also how to print them.