Vikyath Ram has Published 151 Articles

How to print current package cache directory information in android?

Vikyath Ram

Vikyath Ram

Updated on 26-Jun-2020 12:41:59

469 Views

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

How to get street information from Network provider in android?

Vikyath Ram

Vikyath Ram

Updated on 26-Jun-2020 12:21:52

287 Views

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

How to set column width and column count with JavaScript?

Vikyath Ram

Vikyath Ram

Updated on 23-Jun-2020 12:16:55

550 Views

To set the column width and column count in a single declaration, use the JavaScript columns property.ExampleYou can try to run the following code to set column width and column count with JavaScript −                    #myID {       ... Read More

How to set all the border right properties in one declaration with JavaScript?

Vikyath Ram

Vikyath Ram

Updated on 23-Jun-2020 11:22:40

113 Views

To set all the border right properties in JavaScript, use the borderRight property. Set the border color, style, and, width at once using this property.ExampleYou can try to run the following code to learn how to set all the border right properties at once −Live Demo       ... Read More

How can I create a MySQL view that takes the values from a table based on some condition(s)?

Vikyath Ram

Vikyath Ram

Updated on 22-Jun-2020 13:48:48

157 Views

If we want to create a view that takes the values from a table based on some particular condition(s) then we have to use WHERE clause while creating the view. The values depending upon the WHERE clause will be stored in view. The syntax of creating a MySQL view with ... Read More

How can we start MySQL event scheduler?

Vikyath Ram

Vikyath Ram

Updated on 22-Jun-2020 12:30:22

609 Views

Actually, MySQL event scheduler is a process that runs in the background and constantly looks for the events to execute. But before we create or schedule an event we just have to start the scheduler. It can start with the help of the following statement −mysql> SET GLOBAL event_scheduler = ... Read More

How to initialize and compare strings?

Vikyath Ram

Vikyath Ram

Updated on 22-Jun-2020 11:39:31

71 Views

Following example compares two strings by using str compareTo (string), str compareToIgnoreCase(String) and str compareTo(object string) of string class and returns the ascii difference of first odd characters of compared strings.Example Live Demopublic class StringCompareEmp{    public static void main(String args[]) {       String str = "Hello World";   ... Read More

What are single row and multiple row subqueries?

Vikyath Ram

Vikyath Ram

Updated on 22-Jun-2020 08:41:13

11K+ Views

Single Row Sub QueryA single-row subquery is used when the outer query's results are based on a single, unknown value. Although this query type is formally called "single-row, " the name implies that the query returns multiple columns-but only one row of results. However, a single-row subquery can return only ... Read More

In MySQL, how does the precedence of ! operator in comparison with NOT operator depends upon HIGH_NOT_PRECEDENCE SQL mode?

Vikyath Ram

Vikyath Ram

Updated on 22-Jun-2020 06:22:38

65 Views

In MySQL, basically the precedence of ! operator in comparison with NOT operator depends upon the enabling or disabling of HIGH_NOT_PRECEDENCE SQL mode as follows −Disabled HIGH_NOT_PRECEDENCE SQL − In this case, ! the operator has higher precedence than NOT operator.Enabled HIGH_NOT_PRECEDENCE SQL − In this case, ! the operator has ... Read More

Generating random numbers in Java

Vikyath Ram

Vikyath Ram

Updated on 21-Jun-2020 15:16:08

1K+ Views

We can generate random numbers using three ways in Java.Using java.util.Random class − Object of Random class can be used to generate random numbers using nextInt(), nextDouble() etc. methods.Using java.lang.Math class − Math.random() methods returns a random double whenever invoked.Using java.util.concurrent.ThreadLocalRandom class − ThreadLocalRandom.current().nextInt() method and similar othjer methods return ... Read More

Advertisements