Lakshmi Srinivas has Published 339 Articles

How to use URL input type in HTML?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 21-Nov-2023 21:09:31

937 Views

The URL input type is used in HTML using the . Using this, allow users to add URL input type. On some browsers, the URL entered will be validated i.e. if you miss .com, while adding URL, then it won’t submit the form and will show an error i.e. “Please ... Read More

Java program to calculate the percentage

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 03-Nov-2023 21:03:45

24K+ Views

Percent means percent (hundreds), i.e., a ratio of the parts out of 100. The symbol of a percent is %. We generally count the percentage of marks obtained, return on investment etc. The percentage can go beyond 100% also.For Example, assuming that we have total and a part. So we ... Read More

Java program to count the number of vowels in a given sentence

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 03-Nov-2023 03:21:12

25K+ Views

To count the number of vowels in a given sentence: Read a sentence from the user Create a variable (count) initialize it with 0; Compare each character in the sentence with the characters {'a', 'e', 'i', 'o', 'u' } If a match occurs increment the count. Finally print count. Example import java.util.Scanner; public class ... Read More

Java program to find the sum of elements of an array

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 02-Sep-2023 12:57:24

43K+ Views

To find the sum of elements of an array.create an empty variable. (sum)Initialize it with 0 in a loop.Traverse through each element (or get each element from the user) add each element to sum.Print sum.Exampleimport java.util.Arrays; import java.util.Scanner; public class SumOfElementsOfAnArray {    public static void main(String args[]){     ... Read More

How to sum values of a Python dictionary?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 27-Aug-2023 13:33:15

24K+ Views

It is pretty easy to get the sum of values of a Python dictionary. You can first get the values in a list using the dict.values(). Then you can call the sum method to get the sum of these values. exampled = {    'foo': 10,    'bar': 20,    'baz': ... Read More

Is there a case when finally block does not execute in Java?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 10-Aug-2023 13:52:43

566 Views

Questions related to Java exception handling are most frequent during interviews for many companies and even in exams. One such question that an interviewer might ask is whether there is a case when the finally block does not execute in Java. We will try to find the answer to this ... Read More

How to avoid bugs in cloud computing

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 12-May-2022 12:30:51

185 Views

When the word cloud comes to our mind, we think of big white fluffy fantasy. But technically, cloud is the big white hard drive which stores bulky servers and all your information. It’s cool to think how someone else is managing everything and put the data whenever and wherever you ... Read More

Few simple tips to protect your images from casual copying

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 12-May-2022 11:54:42

362 Views

Casual copying is an act of fraud similar to plagiarism. We find many people choose to ignore the copyright act while they involve themselves in casual copying of images as well as content. Image theft has become rampant in recent times due to two major reasons one because it is ... Read More

How to use bots in customer service

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 12-May-2022 11:35:19

122 Views

How many of us have called our cell phone company and been on hold forever, just for reporting an issue or fixing a problem? How many of us would love to chat with an online site and resolve an issue practically? Well this sounds great theoretically, but the truth is ... Read More

How to get free kindle books

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 12-May-2022 11:14:35

225 Views

There are numerous Kindle books which are available and for years you need not buy a book for your Kindle. It is easy, you have to just know where to look.How to Add Books to Kindle?Most popular method is to send a file to an email address associated with your ... Read More

1 2 3 4 5 ... 34 Next
Advertisements