Vikyath Ram has Published 138 Articles

How to add background music to your web page?

Vikyath Ram

Vikyath Ram

Updated on 13-Sep-2023 15:40:09

36K+ Views

To add background music on a web page, use … element. Also, use the autoplay attribute. This will run music in the background whenever the page loads.Set the width and height in a way the player hides on the web page. The loop attribute is added to specify whether the ... Read More

The OSI Reference Model

Vikyath Ram

Vikyath Ram

Updated on 02-Sep-2023 11:45:25

81K+ Views

OSI or Open System Interconnection model was developed by International Standards Organization (ISO). It gives a layered networking framework that conceptualizes how communications should be done between heterogeneous systems. It has seven interconnected layers. The seven layers of the OSI Model are a physical layer, data link layer, network layer, ... Read More

Class declaration with one method in Java

Vikyath Ram

Vikyath Ram

Updated on 30-Jun-2020 08:34:50

366 Views

A class declaration can contain a single method. A program that demonstrates this is given as follows:Example Live Democlass Message {    public void messagePrint() {       System.out.println("This is a class with a single method");    } } public class Demo {    public static void main(String args[]) { ... Read More

Use Pattern class to match in Java

Vikyath Ram

Vikyath Ram

Updated on 30-Jun-2020 08:33:56

225 Views

The representation of the regular expressions are available in the java.util.regex.Pattern class. This class basically defines a pattern that is used by the regex engine.A program that demonstrates using the Pattern class to match in Java is given as follows −Example Live Demoimport java.util.regex.Matcher; import java.util.regex.Pattern; public class Demo {   ... Read More

Working with simple groups in Java Regular Expressions

Vikyath Ram

Vikyath Ram

Updated on 30-Jun-2020 08:29:44

196 Views

Multiple characters can be treated as a single unit using groups in Java regular expressions. The method java.time.Matcher.group() is used to find the subsequence in the input sequence string that is a match to the required pattern.A program that demonstrates groups in Java regular expressions is given as follows −Example Live ... Read More

Convert a Vector to an array in Java

Vikyath Ram

Vikyath Ram

Updated on 30-Jun-2020 08:18:22

1K+ Views

A Vector can be converted into an Array using the java.util.Vector.toArray() method. This method requires no parameters and it returns an Array that contains all the elements of the Vector in the correct order.A program that demonstrates this is given as follows −Example Live Demoimport java.util.Vector; public class Demo {   ... Read More

Get reverse order using Comparator in Java

Vikyath Ram

Vikyath Ram

Updated on 30-Jun-2020 08:16:08

822 Views

The objects of a user defined class can be ordered using the Comparator interface in Java. The java.util.Collections.reverseOrder() method reverses the order of an element collection using a Comparator.A program that demonstrates this is given as follows −Exampleimport java.util.Arrays; import java.util.Collections; import java.util.Comparator; public class Demo {    public static ... Read More

Matcher.pattern() method in Java Regular Expressions

Vikyath Ram

Vikyath Ram

Updated on 30-Jun-2020 08:05:47

161 Views

The method java.time.Matcher.pattern() returns the pattern that is matched upon by the Matcher. This method accepts no parameters.A program that demonstrates the method Matcher.pattern() in Java regular expressions is given as follows −Example Live Demoimport java.util.regex.Matcher; import java.util.regex.Pattern; public class Demo {    public static void main(String args[]) {     ... Read More

Private and final methods in Java Programming

Vikyath Ram

Vikyath Ram

Updated on 27-Jun-2020 08:12:16

8K+ Views

In Java private methods are the methods having private access modifier and are restricted to be access in the defining class only and are not visible in their child class due to which are not eligible for overridden. However, we can define a method with the same name in the ... Read More

How to using string writer append in android?

Vikyath Ram

Vikyath Ram

Updated on 26-Jun-2020 14:07:06

1K+ Views

This example demonstrate about how to using string writer append 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           ... Read More

Advertisements