- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

Updated on 30-Jul-2019 22:30:24
First, create a Set and add elements −Set s = new HashSet(); s.add("P"); s.add(new Date()); s.add(new Long(898999)); s.add("Q"); s.add("R"); s.add(new Integer(1));Convert the above Set to a List −List l = new ArrayList(s);The following is an example to convert a set into a list in Java −Example Live Demoimport java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Set; import java.util.HashSet; public class Demo { public static void main(String[] args) { Set s = new HashSet(); s.add("P");; s.add(new Date()); s.add(new Long(898999)); s.add("Q"); s.add("R"); ... Read More 
Updated on 30-Jul-2019 22:30:24
If we are in a group, it is quite natural to feel neglected or left out at times, but as I can read in your case, you feel you are being left out simply because you are elder to them.Keep CommunicatingFirst of all, it is not good to assume things and facts on your own. Who knows they simply ignore you for this reason? It is better to communicate because you might think that it is important for you to sound funny, but these group conversations are really confusing.Scatter Some Mature AdviceYou can start by giving them advises on their ... Read More 
Updated on 30-Jul-2019 22:30:24
The first sign of this re-evaluation came when the poet Sidney Lanier in “Shakespeare and His Forerunners” published in 1902, and ‘The Phoenix and Turtle’ in which he described as having ‘more complex ideas in it, for the number of words than perhaps any other poem in our language’.The Princess of the Dragon kingdom was ready to wed the Prince of the Phoenix Kingdom but the Prince gets kidnapped! An evil witch, which was trapped, orchestrated the abduction of the Prince.Mystery CastleMystery Castle is a sprawling 18-room home located in the foothills of South Mountain Park in Phoenix. It is ... Read More 
Updated on 30-Jul-2019 22:30:24
Kiwi is a brilliant source of vitamin C which is also known as ascorbic acid. There are also other vitamins that are present in the fruit including vitamin A, folate, vitamin E (alpha-tocopherol) and vitamin K are which are present in good quantity.The amount of minerals present in the kiwi fruit includes a huge quantity of potassium along with other minerals such as calcium, magnesium and phosphorous. All these vital nutrients in kiwifruit come with an added bonus of dietary fiber.Here are some benefits of eating Kiwi fruit.Immune System BenefitsKiwi helps in favor of the regulation of the adaptive immune ... Read More 
Updated on 30-Jul-2019 22:30:24
The best ever rated test match in test cricket history is India vs. Australia in 2001 which was played at Eden Gardens ground, Kolkata. Now, let’s go back to 2001 and look at the Australian cricket team who were defending champions and number one ranked cricket team in both the formats.Eden Gardens, Kolkata. 15th March 2001.This day was the beginning of a new era of Indian cricket. It was a Thursday with an electrifying atmosphere not just at Eden Gardens but across the country. The venue was the Ganguly’s hometown, where the team snatched away victory from the Aussies and ... Read More 
Updated on 30-Jul-2019 22:30:24
To count how many rows have the same value using the function COUNT(*) and GROUP BY. The syntax is as follows −SELECT yourColumName1, count(*) as anyVariableName from yourTableName GROUP BY yourColumName1;To understand the above syntax, let us first create a table. The query to create a table is as follows −mysql> create table RowWithSameValue −> ( −> StudentId int, −> StudentName varchar(100), −> StudentMarks int −> ); Query OK, 0 rows affected (0.55 sec)Insert some records with same value. Here, we have added same marks for more than one student for our example. The query ... Read More 
Updated on 30-Jul-2019 22:30:24
At first, create the first HashSet and add elements to it −// create hash set 1 HashSet hs1 = new HashSet(); hs1.add("G"); hs1.add("H"); hs1.add("I"); hs1.add("J"); hs1.add("K");Create the second HashSet and add elements to it −// create hash set 2 HashSet hs2 = new HashSet(); hs2.add("G"); hs2.add("H"); hs2.add("I"); hs2.add("J"); hs2.add("K");To check whether both the HashSet are equal or not, use the equals() method −hs1.equals(hs2)The following is an example to check whether two HashSet are equal −Example Live Demoimport java.util.*; public class Demo { public static void main(String args[]) { // create hash set ... Read More 
Updated on 30-Jul-2019 22:30:24
Rituals are some physical activities which help us either physically or mentally but mostly in an indirect way. There are many Indian traditional rituals among which the Hindu rituals gain higher importance because of the scientific reasons and the amount of discipline involved in them.Hindu Rituals form a structure that makes life easier. Many have scientifically proven health benefits behind them. They have been followed through ages and passed on for generations. The rituals orient you as to where you are and what you should be doing. Most rituals are like an invisible watch, for example, if you are doing ... Read More 
Updated on 30-Jul-2019 22:30:24
Before getting into an example, we should know what is toast in android. Toast is subclass for java.lang.Object and used to show a short message for a short period of time after that is going to disappear.This example demonstrates how to change the position of Toast in Android.Step 1 - Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 - Add the following code to res/layout/activity_main.xml. In the above code, we have taken a text view. when the user clicks on text ... Read More 
Updated on 30-Jul-2019 22:30:24
Clean water is very necessary not only for drinking purpose but also for other purposes like cleaning utensils, washing clothes, etc.Ways to Clean WaterBoiling: Boiling is the easiest and by far, a quite trusted method of purifying water. But one must note that we cannot get rid of all Impurities through boiling. So, if the fluoride content is too high, boil it, but do not use it for drinking purpose. But use for other purposes like washing dark colored clothes, washing hair etc.Add 'Lal Dawai': Lal Dawai is also called potassium permanganate. Its addition to water purifies it by the ... Read More Advertisements