Articles on Trending Technologies

Technical articles with clear explanations and examples

Why do people buy Kindle, even though it is a single functional device?

Suman Nanda
Suman Nanda
Updated on 30-Jul-2019 198 Views

Kindle is great to reduce eye tension. Kindle is absolutely easy on your sight and is very comfortable to read on. As well, the display on the latest Kindle is built to prevent glare, even in sunlight. In addition to that:Perfect Travel-Around PartnerThe Kindle is so small, light and portable that it is straightforward to carry around anywhere you go and also you don't have to worry about the edges of your publication folding anymore. It also helps that your total library suits this tiny device, so you're indulged for choice while on vacation.Read At NighttimeIf you want to learn ...

Read More

Create Septet Tuple in Java using with() method

Samual Sam
Samual Sam
Updated on 30-Jul-2019 155 Views

The with() method is used to create Septet Tuple in Java.Let us first see what we need to work with JavaTuples. To work with Septet class in JavaTuples, you need to import the following package −import org.javatuples.Septet;Note − Steps to download and run JavaTuples program If you are using Eclipse IDE to run Septet Class in JavaTuples, then Right Click Project → Properties → Java Build Path → Add External Jars and upload the downloaded JavaTuples jar file.The following is an example −Exampleimport org.javatuples.Septet; public class Demo {    public static void main(String[] args) {       Septet < ...

Read More

Does MySQL converts bool to tinyint(1) internally?

George John
George John
Updated on 30-Jul-2019 2K+ Views

Yes, MySQL internally convert bool to tinyint(1) because tinyint is the smallest integer data type.You can also say the bool is synonym for tinyint(1). Let us first create a sample table:mysql> create table boolToTinyIntDemo -> ( -> Id int NOT NULL AUTO_INCREMENT PRIMARY KEY, -> Name varchar(20), -> isAgeGreaterThan18 bool -> ); Query OK, 0 rows affected (1.02 sec)Let us now check the description of table:mysql> desc boolToTinyIntDemo;This will produce the following output+--------------------+-------------+------+-----+---------+----------------+ | Field ...

Read More

Create Pair Tuple using with() method in Java

karthikeya Boyini
karthikeya Boyini
Updated on 30-Jul-2019 190 Views

You can also create a Pair Tule in Java using the with() method.Let us first see what we need to work with JavaTuples. To work with Pair class in JavaTuples, you need to import the following package −import org.javatuples.Pair;Note − Steps to download and run JavaTuples program If you are using Eclipse IDE to run Pair Class in JavaTuples, then Right Click Project → Properties → Java Build Path → Add External Jars and upload the downloaded JavaTuples jar file.The following is an example to create Pair Tuple using with() method −import org.javatuples.Pair; public class Demo {    public static ...

Read More

How to add a "created at" column in a table to set the timestamp in MySQL?

Chandu yadav
Chandu yadav
Updated on 30-Jul-2019 4K+ Views

You need to use ALTER command to add a created at column to an already created table in MySQL.Let us first create a table. The query to create a table is as follows. Here is your table without the “created at” columnmysql> create table formDemo - > ( - > Id int NOT NULL AUTO_INCREMENT PRIMARY KEY, - > Email varchar(128), - > PhoneNumber varchar(15), - > Country varchar(30), - > Platform varchar(40) - > ); Query OK, 0 ...

Read More

How to use split () in Android textview?

Nishtha Thakur
Nishtha Thakur
Updated on 30-Jul-2019 2K+ Views

This example demonstrate about How to use split () in Android textview.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.             In the above code, we have taken name as Edit text, when user click on button it will take data and split the data using space regex.Step 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.EditText; import ...

Read More

How to convert a String into a Date object using JDBC API?

Jennifer Nicholas
Jennifer Nicholas
Updated on 30-Jul-2019 2K+ Views

The valueOf() method of the Date object accepts a String value representing a Date in JDBC escape format i.e. yyyy-mm-dd and converts the given String value into java.sql.Date object.Date date = Date.valueOf(“date_string”);Assume we have created a table named employee_data with the description as shown below:+----------+--------------+------+-----+---------+-------+ | Field    | Type         | Null | Key | Default | Extra | +----------+--------------+------+-----+---------+-------+ | id       | int(11)      | YES  |     | NULL    | | | Name     | varchar(255) | YES  |     ...

Read More

C++ Program to Generate N Number of Passwords of Length M Each

Anvi Jain
Anvi Jain
Updated on 30-Jul-2019 352 Views

This is a C++ Program to Generate N Number of Passwords of Length M Each.AlgorithmBegin    Take the length of password as input.    function permutation() generate random passwords:    /* Arguments       A pointer array a.       Total Number of random numbers m.       Length of the password s.    */    // Body of the function:    if (m == s)       for i = 0 to s-1          Print *(a + i)    else       for i = m to s-1       ...

Read More

Is the gaming experience on smartphones better than PCs yet?

Anuradha Nanda
Anuradha Nanda
Updated on 30-Jul-2019 175 Views

Let us take an example here: for those interested in gaming, a PC offers an experience that truly has a flavor of it’s own. Yet perhaps, the most interesting aspect of this whole debate, is a line from Ray Ozzie, Microsoft’s former Chief Software Architect who matter of factly states “Why are we arguing? Of course, we are in a post-PC world” Somewhere, this line denotes a certain acceptance of the turn of events.Gamers like SmartphonesWith each passing year, we get introduced to yet another fleet of mobile devices that are way more powerful than those preceding it. We're at ...

Read More

How to remove data from treeset in Android?

Nishtha Thakur
Nishtha Thakur
Updated on 30-Jul-2019 189 Views

This example demonstrates How to remove data from tree set in AndroidStep 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.                                       In the above code, we have taken the name and record number as Edit text, when the user clicks on save button it will store the data into ArrayList. Click on delete ...

Read More
Showing 59771–59780 of 61,297 articles
Advertisements