
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();

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();

In order to copy, press the shift key and right-click the file for which you need the path. In the context menu that appears, you will find a new option

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

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

The following statement shows the indices on a table in MySQL. SHOW INDEX FROM ‘LogMaster’ Related Posts Adding a New Column in a Specific PositionStackanetes Combines OpenStack and KubernetesAsus Zenbook

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(); }

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

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

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. Related Posts Huawei

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

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

MySQL exposes a virtual schema called information_schema that describes every database, table, and column on the server. One of its most useful tables is TABLES, which includes a table_rows 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

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

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

There is plenty of data in tables that could be the same data available for multiple records. We may want to know these details and perform some action. Considering the

If you want to let your web application restart your application pool, all you have to do is write a file to the IIS websites folder, which is typically c:inetpubwwwroot.

You can refresh a database object with the help of the sp_refreshsqlmodule function, as shown below: EXEC sys.sp_refreshsqlmodule ‘ObjectName’ Related Posts Life in The Digital World: Is It Impossible To

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

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

There are cases in which we want to ignore errors even if they are genuine. For example, there could be a feed running on all days except for some fixed

MySQL is very powerful with a lot of in-built features. Today we are analyzing the INSTR function. Syntax: INSTR (String, subString) Result: Returns the first index of the subString in

You can easily find tables referenced by foreign keys with a script similar to the following: SELECT [table] = s.name + N’.’ + t.name FROM sys.tables AS t INNER JOIN

Scalable Vector Graphics (SVG) is an XML-based vector image format for two-dimensional graphics. As the name suggests, SVG is used to scale, so it very handy when comes to responsive

There are 3 highly popular myths about garbage collection. Let’s review those myths and the actual truth behind them. Myth #1: Minor GCs don’t pause the application There are different

We write a lot of event logs from .NET applications and others. There are use cases in which you need to read them by logging into the actual machine. It

You can write “not equal to” in two different ways in SQL: != Related Posts Neo-Tokyo Embraces Efficient Smart HomesWindows Store for Business Now Offering Paid AppsGoogle’s focus shift impacts

The preload resource hint can give the browser a head start on loading your site’s CSS and it also signals the browser to initiate an early fetch for an asset.

Have you felt a need for enums to have composite values? They can be defined internally within the enum as below: Public enum livingObjects {Humans,Animals,Plants,All = Humans | Animals |

Use cases where we need to have the result with varying decimal places are possible. You can change the value in the resulting field using the TRUNCATE function. Consider the