devxlogo

We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

Creating Temp Files Using Java

At times, you need to create temporary files to perform certain actions. The following code segment illustrates the same: import java.io.*;public class CreateTempFile{ public static void main(String args[]) { CreateTempFile

Calculate the Difference Between Two LocalDates

Use LocalDate and ChronoUnit: LocalDate date1 = LocalDate.of(2018, 8, 10); LocalDate date2 = LocalDate.of(2018, 8, 30); As long as the method between of the ChronoUnit enumerator takes 2 Temporals as

Get all the IP Addresses to Which a Device is Exposed

At times, your device can be exposed using multiple interface cards. The following code sample will help identify various interfaces and the related IP configuration available on them. import java.net.*;import

Convert an Array of Strings to a List

The java.util.Arrays class has an asList method to convert the argument array into a list. This will be handy when there are large amounts of information that you need to

Using Spliterator to Split the Contents of a List

Instead of just traversing a list, this is a newer way of splitting and then iterating the list: import java.util.Arrays;import java.util.List;import java.util.Spliterator;public class UsingSpliterator{ public static void main(String args[]) {

Build HTML Tables with Tableizer

Tableizer is an external app that is great for building HTML tables out of data, using existing Calc or Excel spreadsheet templates. You only need paste your cells into the

The Right Way to Do Insensitive String Comparison

We often do String.ToUpper()?on two strings to compare them. This introduces additional overhead on string allocation. It is better to use OrdinalIgnoreCase?instead, as shown below: bool CompareResult = firstString.Equals(secondString, StringComparison.OrdinalIgnoreCase);

Understanding Collections.reverse() in Java

A list with a set of values can be reversed using the reverse() method. import java.util.*; public class ReverseACollection{ public static void main(String[] args) { List dataList = new ArrayList();

Using Single Quotes in Java

The difference is visible when you use the single quote with the + sign. The char value is converted to the ascii value and then summed up. However, you have

How to Add MetaData

To be sure that you are seen on Google, and other search engine, searches, you should make sure that you have provided meta data about your website. Also, to make

Using StringJoiner to Join Strings

If you have multiple strings, you can use StringJoiner to join them efficiently. import java.util.StringJoiner;public class UsingStringJoiner{ public static void main(String args[]) { UsingStringJoiner usingStringJoiner = new UsingStringJoiner(); usingStringJoiner.proceed(); }

Speed Up the Windows Startup Process

One way to speed up the Windows startup process is to remove unwanted programs. You can do this using the Startup options of the System Configuration window. To launch System

Adding a New Column in a Specific Position

Consider the following table that already exists: CREATE TABLE ‘NUMBERS_TABLE’ (‘ONE’ INT(11) NULL DEFAULT NULL,’THREE’ INT(11) NULL DEFAULT NULL,’FIVE’ INT(11) NULL DEFAULT NULL)COLLATE=’utf8_bin’ENGINE=InnoDB; And we want to add a new

Highlight Text with the Span Tag

The  tag can be used to add highlights to text. You can choose the color of the highlight. The code looks like this: This is highlighted text.

Manage Maintenance on an ASP.NET Site

Create a file called app_offline.htm with an appropriate maintenance message. Just place this file in the root directory of the web application. IIS and the ASP.NET Framework will stop serving new

Using the Java Collections Disjoint Method

See how to use the disjoint method in Collections to find if the given lists are completely disjointed: import java.util.*;public class UsingDisjointInCollections { public static void main(String args[]) { UsingDisjointInCollections

Get Detailed Information on Tables in MySQL

MySQL provides a schema named information_schema. This has a table named TABLES that has detailed information on the available tables, their record count, etc. The query below helps you with

Find Tables with an XML Column

You can find tables with an XML column in the following way: SELECT [table] = s.name + N’.’ + t.name FROM sys.tables AS t INNER JOIN sys.schemas AS s ON

Using the Small Tag in HTML5

The element tag was formerly used to create subheadings, such as a logo. Now, the element has been redefined, more suitably, and now indicates small print. It is useful as

Chaining Null Comparisons with the ?? Operator

Did you know you can chain null comparisons to any level on an object with ?? operator? See below for an example: string inputString;//set some value.var multiEvaluationResult = inputString?? secondaryString

Update the Metadata of a Database Object

You can refresh a database object with the help of the sp_refreshsqlmodule function, as shown below: EXEC sys.sp_refreshsqlmodule ‘ObjectName’

Using the CSS Clip Property

CSS clipping is another powerful feature. The shape’s edge is called the clip-path, and clipping shows what image area should be visible. Clipping is about hiding what normally would be

Using Braces Effectively in Java

Although using braces is a a common practice, it is sometimes very misleading and it can take hours to figure out what is wrong. A simple way to avoid such