Nishtha Thakur has Published 568 Articles

CSS grid-template-columns property

Nishtha Thakur

Nishtha Thakur

Updated on 03-Jul-2020 08:05:30

83 Views

The grid-template-columns property is used to set the number of columns in the Grid.ExampleYou can try to run the following code to implement the grid-template-columns property −Live Demo                    .container {             display: grid;   ... Read More

Role of CSS flex-wrap property no-wrap value

Nishtha Thakur

Nishtha Thakur

Updated on 03-Jul-2020 07:45:12

112 Views

Use the flex-wrap property with nowrap value to avoid flex-items to wrap.ExampleYou can try to run the following code to implement the nowrap value −Live Demo                    .mycontainer {             display: flex;         ... Read More

CSS animation-duration property

Nishtha Thakur

Nishtha Thakur

Updated on 02-Jul-2020 09:22:55

101 Views

Use the animation-duration property to set how long an animation should take to complete one cycleExampleYou can try to run the following code to implement the animation-duration property −Live Demo                    div {             width: ... Read More

How to use thread.getName() and thread.setName() in android?

Nishtha Thakur

Nishtha Thakur

Updated on 29-Jun-2020 14:58:25

213 Views

Before getting into example, we should know what thread is. A thread is a lightweight sub-process, it going to do back ground operations without interrupt to ui. This example demonstrate about How to use thread.getName() and thread.setName() in android.Step 1 − Create a new project in Android Studio, go to ... Read More

How to use thread.sleep() in android?

Nishtha Thakur

Nishtha Thakur

Updated on 29-Jun-2020 14:56:28

4K+ Views

Before getting into an example, we should know what thread is. A thread is a lightweight sub-process, it going to do background operations without interrupt to ui. This example demonstrate about How to use thread.sleep() in android.Step 1 − Create a new project in Android Studio, go to File ⇒ ... Read More

Example to create a table with all datatypes in MySQL using JDBC?

Nishtha Thakur

Nishtha Thakur

Updated on 29-Jun-2020 14:07:49

836 Views

Java provides supporting classes/datatypes to store all the MySQL datatypes, following is the table which list outs the respective java types for MySQL datatypes −MySQL TypeJava TypeCHARStringVARCHARStringLONGVARCHARStringNUMERICjava.math.BigDecimalDECIMALjava.math.BigDecimalBITbooleanTINYINTbyteSMALLINTshortINTEGERintBIGINTlongREALfloatFLOATdoubleDOUBLEdoubleBINARYbyte []VARBINARYbyte []LONGVARBINARYbyte []DATEjava.sql.DateTIMEjava.sql.TimeTIMESTAMPjava.sql.TiimestampExampleFollowing JDBC program creates a table with name sample with all the possible datatypes in MySQL −import java.sql.Connection; import java.sql.DriverManager; import ... Read More

How to use string Builder class in android?

Nishtha Thakur

Nishtha Thakur

Updated on 29-Jun-2020 13:51:54

1K+ Views

Before getting into an example, we should know what string builder is. StringBuilder class is used to create a mutable string and it is not thread safe so multiple thread can access string builder class at a time. This example demonstrate about How to use string Builder class in android.Step ... Read More

How to use compare string in android?

Nishtha Thakur

Nishtha Thakur

Updated on 29-Jun-2020 13:48:03

2K+ Views

This example demonstrate about How to use compare string 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 getAllStackTraces of current thread in android?

Nishtha Thakur

Nishtha Thakur

Updated on 29-Jun-2020 13:47:07

149 Views

Before getting into an example, we should know what thread is. A thread is a lightweight sub-process, it going to do background operations without interrupt to ui. This example demonstrate about How to get getAllStackTraces of current thread in android.Step 1 − Create a new project in Android Studio, go ... Read More

How to get current thread priority in android?

Nishtha Thakur

Nishtha Thakur

Updated on 29-Jun-2020 13:45:50

386 Views

Before getting into example, we should know what thread is. A thread is a lightweight sub-process, it going to do back ground operations without interrupt to ui. This example demonstrate about How to get current thread priority in android.Step 1 − Create a new project in Android Studio, go to ... Read More

Advertisements