Articles on Trending Technologies

Technical articles with clear explanations and examples

Difference between Box and ZumoDrive

Y L Deepti
Y L Deepti
Updated on 24-Oct-2024 127 Views

Box and ZumoDrive are two cloud storage services that serve different purposes. While Box has strong collaboration tools, security features, and interaction with a variety of commercial apps focussing primarily on file sharing, managing documents and team collaboration; ZumoDrive is designed for individuals to share, access and store files in a much affordable and simpler way. Box has extensive features making it a targeted service provider towards corporations and organizations. This article speaks on the differences between both the cloud storage services in terms of their features, benefits and pricing. To understand the differences, it is primarily important for the ...

Read More

How to Create a Register Form with CSS?

AmitDiwan
AmitDiwan
Updated on 24-Oct-2024 5K+ Views

To create a register form with CSS, we will be using HTML forms. A registration form includes name, email, password, contact and other type of information collected from a user. It consists of input fields, buttons and other form elements which can be easily created using form tag. In this article, we will be discussing and understanding the complete process of how to create a register form with CSS with stepwise explanation and complete example code. Steps to Create a Register Form with CSS We will be following below mentioned steps to create a register form with CSS. ...

Read More

Java program to find the LCM of two numbers

karthikeya Boyini
karthikeya Boyini
Updated on 23-Oct-2024 9K+ Views

In this article, we will learn to find the LCM of two numbers using Java. L.C.M. or Least Common Multiple of two values is the smallest positive value which is the multiple of both values. For example, multiples of 3 and 4 are: 3 → 3, 6, 9, 12, 15 ... 4 → 4, 8, 12, 16, 20 ... The smallest multiple of both is 12, hence the LCM of 3 and 4 is 12.We will learn through two different methods to solve this: an incremental method and a formula-based approach using the Greatest Common Divisor (GCD).  Problem Statement Write ...

Read More

Does constructor return any value in Java?

mkotla
mkotla
Updated on 23-Oct-2024 6K+ Views

No, the constructor does not return any value. While declaring a constructor you will not have anything like a return type. In general, the Constructor is implicitly called at the time of instantiation. And it is not a method, its sole purpose is to initialize the instance variables.Read more about constructors: Java Constructors Example public class Sample{ public Sample(){ System.out.println("This is a constructor"); } public static void main(String args[]){ ...

Read More

Java program to get text from JTextPane and display in Console

Anvi Jain
Anvi Jain
Updated on 23-Oct-2024 903 Views

In this article, we will learn how to get text from a JTextPane in Java and display it in the console. We'll use the getText() method to retrieve the text and show it in the console. Additionally, we’ll apply simple text styling like italics and color using SimpleAttributeSet to demonstrate how to manage styled text in a GUI. Steps to get text from JTextPane Following are the steps to get text from JTextPane and display it in the Console using Java − First, we will start by creating a JFrame to serve as the main window of ...

Read More

Java program to divide a string in \\\\\'N\\\\\' equal parts

Alshifa Hasnain
Alshifa Hasnain
Updated on 23-Oct-2024 946 Views

In this article, we will understand how to divide a string into 'N' equal parts using Java. If the string's length is divisible by N, the string will be split evenly into N parts; otherwise, a message will be displayed indicating that the string cannot be divided into N equal parts. This is demonstrated using both a simple main method and an encapsulated approach. Problem Statement Write a program in Java to divide a string into 'N' equal parts. Below is a demonstration of the same − Input Input string: Java Program is fun! Output The length of the string ...

Read More

Java program to check if a point is on the left or right side of a line

Mr. Satyabrata
Mr. Satyabrata
Updated on 23-Oct-2024 939 Views

A line consists of an infinite number of points. In two-dimensional coordinate system we can define every point with two values i.e. X and Y. A point basically situated on the left side or right side or it can be on the line itself and this can be defined only if we have the coordinates of it. In this program we are going to use the cross-product method to find the direction of the point. Cross- Product method is used to find the third vector from two vectors by cross multiplying both the vectors. In our case if we cross ...

Read More

Java program to remove the first row from a table with DefaultTableModel

Ankith Reddy
Ankith Reddy
Updated on 23-Oct-2024 877 Views

In this article, we will learn how to display a table with multiple rows and columns in Java using the JTable component. Additionally, we will demonstrate how to remove the first row from the table using the removeRow() method. The first program shows how to create and display a table with 9 rows, and the second program demonstrates how to remove the first row, leaving the remaining 8 rows intact.  Create a table with rows and columns using JTable Following are the steps to create a table with rows and columns using JTable − Start ...

Read More

Java program to remove all duplicates words from a given sentence

AmitDiwan
AmitDiwan
Updated on 23-Oct-2024 1K+ Views

In this article, we will learn to remove duplicate words from a given sentence in Java. The first method uses Java Streams to remove duplicates and join the words back into a sentence using the distinct() and Collectors.joining() methods. The second method uses a Set to automatically filter out duplicate words and a StringJoiner to combine the words back into a sentence. Both methods will give a sentence with only unique words. Different approaches Following are the different approaches to remove all duplicate words from a given sentence − Using Java Streams ...

Read More

Design a calendar using HTML and CSS

Yaswanth Varma
Yaswanth Varma
Updated on 23-Oct-2024 4K+ Views

To design a calendar using HTML and CSS, we will be using HTML tables. We use calendar in our daily life to check the dates, schedule any event and many more. In this article, we will understand how we can design a calendar using HTML and CSS only. We will be using HTML table to create the structure and use CSS properties to design the UI of calendar. Steps to Design a calendar Using HTML and CSS We will be following below mentioned steps to design a calendar Using HTML and CSS. Structuring the Calendar ...

Read More
Showing 13521–13530 of 61,248 articles
Advertisements