Tutorialspoint

Why are the numbers 9, 99, 999, 9999 considered 'Lucky Numbers' by the Chinese and many others?

Om Sharma
Answered 16h 36m ago

No matter on what land you inhabit, being superstitious is something very common in all human beings. People, in different societies, have varied notions about superstitions. Moreover, despite being educated up to a satisfactory level their fear for a particular or a set of numbers surprises the world.9, 99, 999, ... Read More

Java Program to get a character located at the String's specified index

Samual Sam
Answered 16h 37m ago

Use the charAt() method in Java to get a character located at a specified index.Let’s say the following is our string.String str = "Laptop...";Finding character at 3rd position.str.charAt(2);The following is the final example.Example Live Demopublic class Demo { public static void main(String[] args) { String str = "Laptop..."; ... Read More

Other than Insurance, which product gives me more return than Fixed Deposit?

Om Sharma
Answered 16h 42m ago

Go for PPFVery much popular as a long-term investment plan, PPF (Public Provident Fund) can be one of the profitable investment options for you as the Government of India has recently announced that the interest rate on PPF will be revised every year. However, for the year 2017-18, PPF account ... Read More

Java Program to compare string using compareTo() method

karthikeya Boyini
Answered 16h 43m ago

The compareTo(obj) method compares this String to another Object.The value 0 is returned if the argument is a string lexicographically equal to this string; a value less than 0 if the argument is a string lexicographically greater than this string; and a value greater than 0 if the argument is ... Read More

Though many of the Indian batsmen are match winners then why only MS Dhoni is quoted as the Best finisher?

Om Sharma
Answered 16h 48m ago

The excessive popularity of Mahendra Singh Dhoni, best known as MS Dhoni, lies in those spectacular innings where the hope of millions and millions of Indians befell on him and he helped India sail through the tumult and brought smiles on the faces of the Indian fans back. No matter ... Read More

Java Program to check for equality between two strings ignoring the case

Samual Sam
Answered 16h 49m ago

Use equalsIgnoreCase() in Java to check for equality between two strings ignoring the case.Let’s say the following are our two strings.String one = "rocky"; String two = "Rocky";Both are equal, but the case is different. Since the method ignore case, both of these strings would be considered equal.Here, we are ... Read More

How can I turn my one-sided love into a duo?

Om Sharma
Answered 16h 52m ago

Well, this clearly seems to be a case of 'one-sided-love' and congratulations, you have entered the colossal group of 'Silent Lovers'. However, the span of five years is extremely long to express your feelings in an environment where we are surrounded with numerous communication alternatives. Since you have already taken ... Read More

Java Program to compare strings for equality

karthikeya Boyini
Answered 16h 54m ago

To compare string for equality in Java, use the equals() method. Let us see some examples wherein we have checked for same as well as different string values.Example Live Demopublic class Demo { public static void main(String[] args) { String one = "x"; String two = "x"; ... Read More

In what ways hot water is better over cold water to drink?

Om Sharma
Answered 16h 57m ago

We all can’t deny the benefits of drinking water and it is still a matter of big debate that how many liters of water an individual should have. Besides, many of us have no clue that drinking lukewarm water instead of cold is far more beneficial, especially in fighting against ... Read More

Java Program to concatenate Integers and a String

Samual Sam
Answered 16h 58m ago

To concatenate integers with a string value, you need to use the + operator.Let’s say the following is the string.String str = "Demo Text";Now, we will concatenate integer values with the above string.String res = str + 1 + 2 + 3 + 4 + 5;Example Live Demopublic class Demo { ... Read More

What is the difference between Proper Noun and a Common Noun?

Om Sharma
Answered 17h 1m ago

There are many terms in English grammar which confuse students and one of them is, the difference between common and proper nouns. In plain words, a noun is a word that specifies a place, person, a thing, etc. Most of the thing (generally physical) that you see around fall in ... Read More

Concatenate null to a string in Java

karthikeya Boyini
Answered 17h 2m ago

To concatenate null to a string, use the + operator.Let’s say the following is our string.String str = "Demo Text";We will now see how to effortlessly concatenate null to string.String strNULL = str + "null";The following is the final example.Example Live Demopublic class Demo { public static void main(String[] args) { ... Read More

How can I improve performance of a Laptop or PC?

Om Sharma
Answered 17h 6m ago

You have an assignment due and just sat down to finish it off quickly, but your slow laptop or PC is creating a trouble for you and the worst part is, you have no clue how to deal with this sluggish piece. No big deal if many users go the ... Read More

Get all digits from a string in Java

Samual Sam
Answered 17h 7m ago

Let’s say the following is our string.String str = "DEMO98 TE4567XT";To display only the digits from the above string, we have used the replaceAll() method and replace all the characters with empty.str.replaceAll("\\D", ""))The following is the final example that displays only digits from the string.Example Live Demopublic class Demo {    public static void main(String[] args) {     ... Read More

Which one is safer Sleep or Hibernate in Windows?

Om Sharma
Answered 17h 9m ago

Users generally sleep, hibernate or shut down their PC/laptop without having any clue what exactly these different terms denote. Here, you get clarity for these terms.Sleep ModeIf you leave your device on sleep mode, it allows you to work resume your work at the cost of some electricity as it ... Read More

Advertisements
Loading...
Unanswered Questions View All