Create JSON Array Using Java

Smita Kapse
Updated on 06-Sep-2023 21:23:55

49K+ Views

A JSON array is an ordered collection of values that are enclosed in square brackets i.e., it begins with '[' and ends with ']'. The values in the arrays are separated by ', ' (comma).Sample JSON array{    "books": [ Java, JavaFX, Hbase, Cassandra, WebGL, JOGL] }The JSON-simple is a light weight library which is used to process JSON objects. Using this you can read or, write the contents of a JSON document using Java program.JSON-Simple maven dependencyFollowing is the maven dependency for the JSON-simple library −           com.googlecode.json-simple       json-simple       ... Read More

Division Operation in Relational Algebra

Bhanu Priya
Updated on 06-Sep-2023 21:18:58

72K+ Views

Query is a question or requesting information. Query language is a language which is used to retrieve information from a database.Query language is divided into two types −Procedural languageNon-procedural languageProcedural languageInformation is retrieved from the database by specifying the sequence of operations to be performed.For Example: Relational algebra.Structure Query language (SQL) is based on relational algebra.Relational algebra consists of a set of operations that take one or two relations as an input and produces a new relation as output.Types of Relational Algebra operationsThe different types of relational algebra operations are as follows −Select operationProject operationRename operationUnion operationIntersection operationDifference operationCartesian product ... Read More

Call JavaScript Function on Page Load

Shubham Vora
Updated on 06-Sep-2023 21:16:55

61K+ Views

This tutorial will teach us to call a JavaScript function on page load. In many cases, while programming with HTML and JavaScript, programmers need to call a function, while loading the web page or after the web page load finishes. For example, programmers need to show the welcome message to the user on page load, and the programmer needs to call a JavaScript function after the page load event.There are various ways to call a function on page load or after page load in JavaScript, and we will look at them one by one in this tutorial.Using the onload event ... Read More

Check Whether a Character is Uppercase in Java

karthikeya Boyini
Updated on 06-Sep-2023 21:10:01

49K+ Views

To check whether a character is in Uppercase or not in Java, use the Character.isUpperCase() method.We have a character to be checked.char val = 'K';Now let us use the Character.isUpperCase() method.if (Character.isUpperCase(val)) {    System.out.println("Character is in Uppercase!"); }else {    System.out.println("Character is in Lowercase!"); }Let us see the complete example now to check for Uppercase in Java.Example Live Demopublic class Demo {    public static void main(String []args) {       System.out.println("Checking for Uppercase character...");       char val = 'K';       System.out.println("Character: "+val);       if (Character.isUpperCase(val)) {          System.out.println("Character is ... Read More

Purpose of Database Management System

Bhanu Priya
Updated on 06-Sep-2023 21:07:28

45K+ Views

The Database Management System (DBMS) is defined as a software system that allows the user to define, create and maintain the database and provide control access to the data.It is a collection of programs used for managing data and simultaneously it supports different types of users to create, manage, retrieve, update and store information.PurposeThe purpose of DBMS is to transform the following −Data into information.Information into knowledge.Knowledge to the action.The diagram given below explains the process as to how the transformation of data to information to knowledge to action happens respectively in the DBMS −Previously, the database applications were built ... Read More

Use HTML Button to Call JavaScript Function

Abhishek Kumar
Updated on 06-Sep-2023 21:05:15

65K+ Views

We use the onclick event attribute property of the HTML button to call a JavaScript function. The JavaScript code provided in the onclick attribute executes when the button is clicked. There are various attributes provided with the button tag in HTML that allows us to customize the button’s functionality and also let us decide how and what the button triggers. Approach 1: Using the onclick event in JavaScript The onclick event of the button element expects JavaScript code that is triggered when the button is clicked upon. So we put the function that needs to be called in the onclick ... Read More

Initialize a List to an Empty List in C#

karthikeya Boyini
Updated on 06-Sep-2023 20:56:09

48K+ Views

To initialize a list to an empty list in C#, set it like the following statement without any elements −List list = new List();Now, use the Any() method to check whether the list is empty or not −bool chk = !list.Any();Let us see the complete code −Example Live Demousing System; using System.Collections.Generic; using System.Linq; public class Program {    public static void Main() {       // empty list       List list = new List();       // check for empty list       bool chk = !list.Any();       if(chk) {          Console.WriteLine("List is Empty!");       } else {          Console.WriteLine("List isn't Empty!");       }    } }OutputList is Empty!

Generate a UUID on iOS from Swift

Nitin Aggarwal
Updated on 06-Sep-2023 18:14:04

1K+ Views

This article will explain to you what is the UUID in iOS and how to generate it in the Swift language. You will see some practical situations in which UUID is useful in the iOS application. What is UUID? A universally unique identifier (UUID) is a string of characters that is guaranteed to be unique across all devices and at all times. UUIDs are often used to uniquely identify resources, such as database records or files. In iOS, UUIDs can be used for a variety of purposes. Some common use cases for UUIDs in iOS include − Identifying app-specific ... Read More

Color Histogram Equalization in MATLAB

Manish Kumar Saini
Updated on 06-Sep-2023 16:01:03

274 Views

In digital image processing, there is a technique called histogram equalization which is used to enhance the visual quality of an image by manipulating contrast in the image. Histogram equalization improves the quality of an image by redistributing the pixel values across the entire image, so that the histogram of the image can be uniformly distributed. Histogram is nothing but the frequency of occurrence of each pixel intensity value. Sometimes, we see that the pixel intensities in an image are concentrated in a particular range and results in the poor visual quality of the image. Histogram equalization is used to ... Read More

Different Types of Denoising Filters in MATLAB

Manish Kumar Saini
Updated on 06-Sep-2023 16:00:05

402 Views

In MATLAB, a denoising filter is a tool that can reduce or remove noise from a digital image or a digital signal. As we know, noise is an unwanted signal or disturbance in a digital signal that impacts the quality of the signal or can cause errors in the signal processing. Therefore, it is required to remove or reduce the noise in a signal or image. This can be done with the help of a denoising filter. In this tutorial, we will explore several different types of denoising filter in MATLAB and will implement them using MATLAB programming. Types of ... Read More

Advertisements