Skip to main content

Posts

Index (List of Contents)

> INDEX: Character class in Java: Part 1 (Intro and List of methods) Part 2 (All Methods with examples) ASCII Codes in Java: Part 1 (Intro and ASCII Table) Part 2 (Different examples of how to use ASCII) ARRAYS in Java: Part 1 (Introduction - OneD and TwoD) Part 2 (One-Dimensional Array Explaination) Part 3 (One-Dimensional Array- input and use programming examples on different datatypes) Part 4(One-Dimensional Array- Sum all elements, find min-max, longest string programming examples. Part 5(One-Dimensional Array- String programming examples. Part 6(One-Dimensional Array- Searching programming examples. (Linear) Part 7(One-Dimensional Array- Searching programming examples. (Binary) Part 8(One-Dimensional Array- Sorting programming examples. (Bubble) Part 9(One-Dimensional Array- Sorting programming examples. (Selection) Strings in Java: Part 1 (Introduction & List Of Basic Methods with Examples) Part 2 (List Of Comp...
Recent posts

Arrays in Java: (Part 9)

> Arrays in Java: (Part 9) One Dimensional Array Selection Sort: 14. Selection Sort in Java (for integers) 15. Selection Sort in Java (for Strings) Example: Selection Sort in Java (for Integers) Example: Selection Sort in Java (for Strings)

Arrays in Java: (Part 7)

> Arrays in Java: (Part 7) One Dimensional Array Binary Search: 10. Binary Search in Java (for integers) 11. Binary Search in Java (for Strings) Example: Binary Search in Java (for Integers) Example: Binary Search in Java (for Strings)

Character Class in Java (Part 2)

> The Character Class: (Part 1) Methods of Character class: Example: Method -> isDigit() [validating name] Example: Method -> isLetter() [validating mobile number] Example: Method -> isLetterOrDigit() [validating user_id / username] Example: Method -> isLowerCase() Example: Method -> isUpperCase() Example: Method -> toUpperCase() and toLowerCase() Click HERE for the list of Methods of Character class. Click HERE for the ASCII Table for different Characters

ASCII Code in Java (Part 2)

> The ASCII Code: (Part 2) Printing the ASCII code for a character: Printing the character based on the ASCII code input (Reverse of the previous program): Printing the ASCII code every character in an input String: Click HERE for ASCII Code Information (Part 1) Click HERE for the Methods of Character class.

ASCII Code in Java (Part 1)

> The ASCII Code: (Part 1) ASCII stands for "American Standard Code for Information Interchange". As you may remember (Grade 9), computers only work with HIGH(1) and LOW(0) electrical states, known as bits, with correspond to mathematical Base 2 numbers. That is, computers only understand binary language. ASCII codes represent text (or other things) in computers. Assume that you are working with MS Word, or PPT or any other tool that uses text based inputs from user. You need to type a sentence that computer is not aware of. ASCII codes help to exchange this information between user and computer. When you type a character, it is converted into ASCII code first and then into Binary, which makes the computer understand what is to be typed. Hence every key on the keyboard has a specific ASCII code which is used to make the computer understand our language. If you press 4 from keyboard, then keyboard send the value 100 (value equival...

Relevant to YOU: