Reverse of String in Java
Quick Java code snippet to reverse java string using for loop. import java.util.Scanner;class ReverseString{ public static void main(String...
Insertion sort example in Java
Code snippet to sort array using insertion sort algorithm in java....
String length and trim string in java
Code snippet explains the usage of String class length and trim() method....
How to change upper case string to lower case in Java
Quick Java code snippet to change case of a String in Java. It uses toUpperCase() and toLowerCase() methods present in java.lang.String...
Linear / Sequential Search Example in Java
Quick Java code snippet to show Linear / Sequential Search....
How to Get Device Information in Android
The following code snippet will get the device detailed information in Android....
How to create a background service in Android
To create a background service, first you need to add the service into your manifest file. Then, create a class that extends service....
How to access accelerometer in Android
The following code snippet will help you with the basic understanding of how to set up the Android accelerometer and get values from it. To...
How to add zoom controls to Android Map View
The following code snippet shows how to add zoom controls to Android MapView. We can achieve this by...
Upload image to a web service using Http URL Connection
The following code snippet can be used to upload an image to web service in Android. After getting a Bitmap object from the camera or other...

