Vikyath Ram has Published 178 Answers

How to print number of words in textview in android?

Vikyath Ram
Published on 21-Mar-2019 09:35:32
This example demonstrate about How to print number of words in textview in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.<?xml version="1.0" encoding="utf-8"?> <LinearLayout ... Read More

How to merge two arrays without duplication in android listview?

Vikyath Ram
Published on 21-Mar-2019 09:13:26
This example demonstrate about How to merge two arrays without duplication in android listview.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" ... Read More

How to give on click listener for footer view in android listview?

Vikyath Ram
Published on 21-Mar-2019 09:03:03
This example demonstrate about How to give on click listener for footer view in android listview.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml<?xml version="1.0" encoding="utf-8"?> ... Read More

How to extend an array after initialization in android listview?

Vikyath Ram
Published on 21-Mar-2019 07:55:38
This example demonstrate about How to extend an array after initialization in the android listview.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml<?xml version="1.0" encoding="utf-8"?> <LinearLayout ... Read More

How to print current package cache directory information in android?

Vikyath Ram
Published on 20-Mar-2019 19:48:26
This example demonstrate about How to print current package cache directory information in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.<?xml version="1.0" encoding="utf-8"?> <LinearLayout ... Read More

How to get street information from Network provider in android?

Vikyath Ram
Published on 20-Mar-2019 19:27:46
This example demonstrate about How to get street information from Network provider in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.<?xml version="1.0" encoding="utf-8"?> <LinearLayout ... Read More

Demonstrate the usage of the Pattern.split() method in Java

Vikyath Ram
Published on 19-Feb-2019 07:26:13
The specified input sequence can be split around a particular match for a pattern using the java.util.regex.Pattern.split() method. This method has a single parameter i.e. the input sequence to split and it returns the string array obtained by splitting the input sequence around a particular match for a pattern.A program ... Read More

Pattern.matches() method in Java Regular Expressions

Vikyath Ram
Published on 19-Feb-2019 07:20:21
The java.util.regex.Pattern.matches() method matches the regular expression and the given input. It has two parameters i.e. the regex and the input. It returns true if the regex and the input match and false otherwise.A program that demonstrates the method Pattern.matches() in Java regular expressions is given as follows:Example Live Demoimport java.util.regex.Pattern; ... Read More

Use a character class in Java Regular Expressions

Vikyath Ram
Published on 19-Feb-2019 07:03:27
A character class is set of characters that are enclosed inside square brackets. The characters in a character class specify the characters that can match with a character in an input string for success. An example of a character class is [a-z] which denotes the alphabets a to z.A program ... Read More

The extends Keyword in Java

Vikyath Ram
Published on 19-Feb-2019 06:46:30
An object can acquire the properties and behaviour of another object using Inheritance. In Java, the extends keyword is used to indicate that a new class is derived from the base class using inheritance. So basically, extends keyword is used to extend the functionality of the class.A program that demonstrates ... Read More
Previous 1 ... 3 4 5 6 7 8 9 ... 18 Next
Advertisements