Samual Sam has Published 2496 Articles

How to convert string to array of integers in java?

Samual Sam

Samual Sam

Updated on 06-Sep-2023 12:59:19

39K+ Views

You can convert a String to integer using the parseInt() method of the Integer class. To convert a string array to an integer array, convert each element of it to integer and populate the integer array with them.Example Live Demoimport java.util.Arrays; public class StringToIntegerArray { public static void ... Read More

Java program to find the 2nd largest number in an array

Samual Sam

Samual Sam

Updated on 02-Sep-2023 15:09:09

54K+ Views

To find the second largest element of the given array, first of all, sort the array.Sorting an arrayCompare the first two elements of the arrayIf the first element is greater than the second swap them.Then, compare 2nd and 3rd elements if the second element is greater than the 3rd swap ... Read More

How to Create a Multi-line Text Input (Text Area) In HTML?

Samual Sam

Samual Sam

Updated on 02-Sep-2023 13:59:12

46K+ Views

To create a multi-line text input, use the HTML tag. You can set the size of a text area using the cols and rows attributes. It is used within a form, to allow users to input text over multiple rows.Here are the attributes of tag −AttributeValueDescriptionautofocusautofocusSpecifies that on ... Read More

How to pass Arrays to Methods in Java?

Samual Sam

Samual Sam

Updated on 02-Sep-2023 13:52:53

55K+ Views

You can pass arrays to a method just like normal variables. When we pass an array to a method as an argument, actually the address of the array in the memory is passed (reference). Therefore, any changes to this array in the method will affect the array.Suppose we have two ... Read More

Java Program to check the beginning of a string

Samual Sam

Samual Sam

Updated on 10-Aug-2023 12:52:28

155 Views

A string is a class in Java that stores a series of characters enclosed within double quotes. Those characters are actually String-type objects. The string class is available in the 'java.lang' package. Suppose we have given a string and our task is to find the beginning of that string. Let's ... Read More

Java Program to check if two dates are equal

Samual Sam

Samual Sam

Updated on 10-Aug-2023 12:47:18

159 Views

The date is a way of keeping track of our time as it is an integral part of our daily lives. In the programming world, there are a few scenarios where we are required to deal with the date and time such as while developing a calendar application and attendance ... Read More

Even in Offline Mode, You Can browse Using Google Chrome

Samual Sam

Samual Sam

Updated on 03-Mar-2023 11:50:12

1K+ Views

In Google Chrome, when you open any page, it instantly connects to the internet and fetches you the latest version of the page from the server and then it displays on your screen, be it mobile or desktop. In case if there is a problem with the internet connection, then ... Read More

Exam guidance for ias indian administrative services

Samual Sam

Samual Sam

Updated on 01-Jun-2022 10:10:30

167 Views

To crack the prestigious national level exam of India, IAS (Indian Administrative Service) conducted by UPSC is a dream for many aspirants all over India. This exam is generally considered as a hard nut to break from the students perspective in terms of the exam duration and various levels of ... Read More

New feature from freecharge on whatsapp

Samual Sam

Samual Sam

Updated on 01-Jun-2022 08:34:12

132 Views

Freecharge, one of India’s quickest growing popular online payments service has introduced a new feature that lets users transfer money to any of a person’s through WhatsApp contacts. It is a great update on the Freecharge app where you can Send, Receive, Request and Recharge money on WhatsApp.Previously, Freecharge has ... Read More

what are the evolving technologies in mobile app development space

Samual Sam

Samual Sam

Updated on 01-Jun-2022 08:25:57

124 Views

We are well aware of the importance that mobile plays in dynamics of present day life. And, in order to keep up with the way we continue to use our mobile phones, innovation in the mobile technology segment has also seen a massive scale of evolution. As millions of developers ... Read More

Previous 1 ... 3 4 5 6 7 ... 250 Next
Advertisements