Visit Sponsor

Core Java Views: 3

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...

Read More

Core Java Views: 2

Insertion sort example in Java

Code snippet to sort array using insertion sort algorithm in java....

Read More

Core Java Views: 6

String length and trim string in java

Code snippet explains the usage of String class length and trim() method....

Read More

Core Java Views: 3

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...

Read More

Core Java Views: 3

Linear / Sequential Search Example in Java

Quick Java code snippet to show Linear / Sequential Search....

Read More

Android Views: 10

How to Get Device Information in Android

The following code snippet will get the device detailed information in Android....

Read More

Android Views: 3

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....

Read More

Android Views: 3

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...

Read More

Android Views: 3

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...

Read More

Android Views: 5

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...

Read More
Close