Thursday, June 16, 2011

PROGRAM TO DEMONSTRATE THE USE OF STRING CLASS AND EMPLOYING AT LEAST 10 STRING HANDLING METHODS


class StringMethods
{    public static void main(String args[ ])
{    String string1 = new String ("WELCOME TO");
String string2 = new String (" JAVA PROGRAMMING");
String s3,s4,s5,s6,s7,s8;
boolean b;
char ch;
int a,c;
System.out.println("\n\nSTRING1 is  : "+string1);
s3 = string1.toLowerCase();
System.out.println("\n\nSTRING1 is Converted into Lower Case       : "+s3);
s4 = string1.toUpperCase();
System.out.println("\n\nSTRING1 is Converted into Upper Case       : "+s4);
s5 = string1.replace ('O','A');
System.out.println("\n\nSTRING1's character 'O' is Replaced by 'A'  : "+s5);
a = string1.length();
System.out.println("\n\nLength of The STRING1  is                  : "+a);
ch = string1.charAt(5);
System.out.println("\n\nThe Character Present at Index value = 5 in the STRING1 is : "+ch);
s7 = string1.substring(5);
System.out.println("\n\nThe Substring  Starting from index value = 5 of STRING1 is :"+s7);
s6 = string1.trim();
System.out.println("\n\nAfter Remove White Spaces at the Beg. and End of the STRING1 is : "+s6);
System.out.println("\n\nSTRING2 is  : "+string2);
b  = string1.equals(string2);
System.out.println("\n\nAre Both Strings Equal? True  or  False    : "+b);
s6 = string1.concat (string2);
System.out.println("\n\nThe Concatenates of  STRING1 &  STRING2 is : "+s6);
s8 = string2.substring(5,11);
System.out.println("\n\nThe Substring Start from index value = 5 to 11 of STRING2 : "+s8); //Not including 11th index value
}
}

Monday, June 13, 2011

B....


*       Bandwidth
The capacity of a networked connection. Bandwidth determines how much data can be sent along the networked wires. Bandwidth is particularly important for Internet connections, since greater bandwidth also means faster downloads.

*       Binary code
The most basic language a computer understands, it is composed of a series of 0s and 1s. The computer interprets the code to form numbers, letters, punctuation marks, and symbols.
*       Bit
The smallest piece of computer information, either the number 0 or 1. In short ther are called binary digits.


*       Boot
To start up a computer. Cold boot.restarting computer after having turned off the power. Warm boot.restarting computer without having turned off the power.

*       Browser
Software used to navigate the Internet. Netscape Navigator and Microsoft Internet Explorer are today's most popular browsers for accessing the World Wide Web.

*       Bug
A malfunction due to an error in the program or a defect in the equipment.

*       Byte
Most computers use combinations of eight bits, called bytes, to represent one character of data or instructions. For example, the word .cat. has three characters, and it would be represented by three bytes.

Thursday, June 02, 2011

A....


*       Applet
A small Java application that is downloaded by an ActiveX or Java-enabled web browser. Once it has been downloaded, the applet will run on the user's computer. Common applets include financial calculators and web drawing programs.
     
*       Application
Computer software that performs a task or set of tasks, such as word processing or drawing. Applications are also referred to as programs.

*       ASCII
American Standard Code for Information Interchange, an encoding system for converting keyboard characters and instructions into the binary number code that the computer understands.