Samual Sam has Published 2310 Articles

Fiber Cables

Samual Sam

Samual Sam

Updated on 20-Jun-2020 08:22:49

2K+ Views

Optical fiber cables are transparent, flexible fibers made up of glass or plastic through which light waves can pass. A bunch of fiber optic cables is shown in the following diagram −Structure of a Fiber – Optic CableA cross section of a fiber optic cable reveals three parts −Core −  ... Read More

What function in MySQL can be used to get the number code of a specific character?

Samual Sam

Samual Sam

Updated on 20-Jun-2020 07:38:30

117 Views

String function ASCII() in MySQL returns the ASCII number code of the specific character.SyntaxASCII(str)Here, str, the argument of ASCII() function, is the string whose ASCII value of the first character to be retrieved.It is pertinent to mention here that it will return the number code the left the most character ... Read More

Aural Media CSS Properties

Samual Sam

Samual Sam

Updated on 20-Jun-2020 06:40:32

95 Views

Aural rendering of documents is mainly used by the visually impaired. The following are the aural media CSS properties −The azimuth property sets, where the sound should come from horizontally.The elevation property sets, where the sound should come from vertically.The cue-after specifies a sound to be played after speaking an ... Read More

How can we add values into the columns of a MySQL table?

Samual Sam

Samual Sam

Updated on 20-Jun-2020 06:13:55

299 Views

INSERT command is used to add values to the columns of a MySQL table. We need to specify the values in INSERT command for all the columns as follows −SyntaxINSERT INTO table_name values(value1, value2, …)ExampleSuppose we have a table named ‘Stock’ with three columns ‘Item_id’, ‘Item_name’ and ‘Item_rate’ then with ... Read More

How can we modify column/s of MySQL table?

Samual Sam

Samual Sam

Updated on 20-Jun-2020 05:55:09

223 Views

By using MODIFY keyword with ALTER TABLE command we can modify the column/s of MySQL table. The syntax for the same is as follows;SyntaxAlter table table_name MODIFY column_name1 datatype, MODIFY column_name2 datatype… MODIFY column_nameN datatype);ExampleIn the example below, with the help of MODIFY keyword in ALTER Command, the size of ... Read More

Java program to add a given time to a particular date

Samual Sam

Samual Sam

Updated on 19-Jun-2020 14:58:38

126 Views

Following is an example to add a given time to a particular date.ProgramLive Demoimport java.util.*; public class Main {    public static void main(String[] args) throws Exception {       Date d1 = new Date();       Calendar cl = Calendar. getInstance();       cl.setTime(d1);   ... Read More

CopyOnWriteArraySet Class in Java

Samual Sam

Samual Sam

Updated on 19-Jun-2020 14:45:11

695 Views

Class declarationpublic class CopyOnWriteArraySet    extends AbstractSet implements SerializableCopyOnWriteArraySet class uses CopyOnWriteArrayList internally for all of its operations and thus possesses the basic properties of CopyOnWriteArrayList.CopyOnWriteArraySet is a thread-safe.CopyOnWriteArraySet is to be used in Thread based environment where read operations are very frequent and update operations are rare.Iterator of CopyOnWriteArraySet ... Read More

How can I see the constraints which are applied to a table stored in the database I am currently using?

Samual Sam

Samual Sam

Updated on 19-Jun-2020 13:30:26

118 Views

MySQL SHOW CREATE TABLE statement will provide us the constraints applied to a particular table along with some other details about that table. Its syntax would be as follows −SyntaxSHOW CREATE TABLE table_name;Here table_name is the name of the table on which we want to see the constraints.ExampleIn this example ... Read More

Date format validation using Java Regex

Samual Sam

Samual Sam

Updated on 19-Jun-2020 12:45:34

835 Views

Following example demonstrates how to check whether the date is in a proper format or not using matches method of String class.ExampleLive Demopublic class Main {    public static void main(String[] argv) {       boolean isDate = false;       String date1 = "8-05-1988";       ... Read More

GregorianCalendar Class in Java

Samual Sam

Samual Sam

Updated on 19-Jun-2020 12:40:18

258 Views

GregorianCalendar is a concrete implementation of a Calendar class that implements the normal Gregorian calendar with which you are familiar. We did not discuss Calendar class in this tutorial, you can look up standard Java documentation for this.The getInstance( ) method of Calendar returns a GregorianCalendar initialized with the current date and ... Read More

Advertisements