ProbDESK - A complete desk of solution
techAloud - A tech blog for you
PicSTREET - A Big Street of Free Wallpapers
SoftDESK - A Complete Desk of Free Software
WebRank Toolbar - A SEO Firefox Addon
WebRank SEO - A Chrome Extension
Tips n' Tricks
Page 1 of 2
Total Programs: 28
1. Array Example
This Program illustrates how use declare arrays of built in type.Arrays are contiguous block of memory refrences by their name.
This program explains the use of substring method of the String class
3. Stack Class
Stack class is available in java. Stack
is used which means that we have to define the type of E like integer,string etc and the stack will be intialised with the type of E only.
4. Reverse A String
In this program the characters of an array are reversed using reverse method of StringBuffer class. We use StringBuffer class because we cannot modify String class variables.
5. Returning An Array
This program explains how to return array from a method.We declare the return type of the method as an array and accept the returned value in an array.
6. Renaming A File
This programs explains the use of rename function of the class File.A already exisiting file is renamed.
7. NonPrimitive array
In this program we illustrate how to declare Multi Dimensional arrays.We have a used a 2D array to explain this concept.It deals with the non primitive type of array so the initialization is done throughclass constructors.
8. Moving File
This program illustrates how to move a file from one directory to another.
In this program we illustrate how to declare Multi Dimensional arrays.We have a used a 2D array to explain this concept.
10. Size of a File
This programs checks the Size of the file. This is achieved by using the size method of the File class.The result is in bytes.
11. Existence of File
This program explains the use of the exists method in the File class.Exists method checks if the file exists in the current directory.
12. Deleting A File
This program creates a File and if it does not exists already,and then deletes the file using the methods of the File class.
13. Declaring An Array
An array is a contiguous block of memeory. In this program an array is delcared of a primitive type.
14. Creating A File
This program creates a File and if it does not exists already.
15. Copying Arrays
Array copy means copying the elements of the array or a part of the array. We have to declare the array in which elements are to copied of the same size as that of the original array.
Did You Know ?
IP address is a numerical label that is assigned to devices participating in a computer network. Read More
Question of the Week
How many bits are used in IPv6 addressing?
©2010 ProbCOMP. All Right Reserved |