- 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
This example demonstrates how to add shadow Effect for a Text 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 with shadow properties as shown below -android:shadowColor = "#000" android:shadowDx = "-2" android:shadowDy = "-2" android:shadowRadius = "1"In the above tags indicates about shadow color, Axis's(X, Y) and shadow radius for text view.Step 3 − Add the following code to src/MainActivity.javapackage ... Read More 
Updated on 30-Jul-2019 22:30:24
An element of a Vector can be searched using the method java.util.ArrayList.indexOf(). This method returns the index of the first occurrence of the element that is specified. If the element is not available in the Vector, then this method returns -1.A program that demonstrates this is given as follows:Example Live Demoimport java.util.Vector; public class Demo { public static void main(String args[]) { Vector vec = new Vector(5); vec.add(4); vec.add(1); vec.add(7); ... Read More 
Updated on 30-Jul-2019 22:30:24
The data members and methods of a class can be accessed only from within their declared class if they are specified with the private access modifier. The keyword private is used to specify this modifier.A program that demonstrates the private access modifier in Java is given as follows:Example Live Democlass A { private int a = 6; public void printA() { System.out.println("Value of a = " + a); } } public class Demo { public static void main(String args[]) { A obj = new A(); obj.printA(); } ... Read More 
Updated on 30-Jul-2019 22:30:24
Bullying comprises of behaviors that emphasize on making someone else feel insufficient or direct on disparaging someone else. It is nothing but torture, physical harm, continuous degrading speech and attempts to exclude another person. Bullying is mobile and is done with the aim of bringing another person down.A recent research states that teenage bullying is more usual among younger teens than it in older teens. However, it may be that young teens are more vulnerable to physical bullying, which is simple to recognize, and that older teens are soberer in processes of bullying that are not always accurately recognized as ... Read More 
Updated on 30-Jul-2019 22:30:24
The user defined variable is also known as session-specific variable. It is a type of loosely typed variable which can be initialized somewhere in session and contains the value of user defined variable until session ends.The user defined variable is prefixed with symbol @. For Example:@anyVariableName;There are two approaches by which you can initialize the user-defined variable. You can use SET command or using SELECT query. The first approach is as follows:SET @anyVariableName=anyValue;The second approach is as follows:SELECT @anyVariableName :=anyValue;If you do not use colon (:) in SELECT query then it evaluates it as expression. The result will either be ... Read More 
Updated on 30-Jul-2019 22:30:24
“Hinduism” is the embodiment of religious and philosophical beliefs indigenous to the Indian subcontinent and is considered as one of the oldest religion on earth. Hinduism is also called "Sanatana Dharma" which has the pillars of strength i.e., the oldest surviving text of humanity - the Vedas.Hindu philosophy refers to a group of "Darshanas" (philosophies, worldviews, teachings) that emerged in ancient India. There are 6 such Darshanas, which are included as Shaddarsana. They are – Sankhya, Yoga, Nyaya, Vaisheshika, Mimamsa, and Vedanta. The term Darshana literally means showing the path (of life).NyayaThe founder of Nyaya is Akshapada Gautama and it ... Read More 
Updated on 30-Jul-2019 22:30:24
Use the clear() method to remove all the values from LinkedHashMap in Java.Create a LinkedHashMap and add some elements −LinkedHashMap l = new LinkedHashMap(); l.put("1", "Jack"); l.put("2", "Tom"); l.put("3", "Jimmy"); l.put("4", "Morgan"); l.put("5", "Tim"); l.put("6", "Brad");Now, let us remove all the values −l.clear();The following is an example to remove all values from LinkedHashMap −Example Live Demoimport java.util.*; public class Demo { public static void main(String[] args) { LinkedHashMap l = new LinkedHashMap(); l.put("1", "Jack"); l.put("2", "Tom"); ... Read More 
Updated on 30-Jul-2019 22:30:24
The curd is the normal usage of Yogurt in many places. In fact, when milk gets into contact with some acidic substance, it gets coagulated forming curdling, which is used in the preparation of cheese. Instead, when milk is boiled and cooled to a lukewarm temperature and some curd is added to it, that would result in the formation of Yogurt, which is often addressed as Curd.The yogurt or curd, as most of them mention, is formed by the bacterial fermentation of milk. The fermentation of lactose by the bacteria called “yogurt cultures” produces the lactic acid, which helps in ... Read More 
Updated on 30-Jul-2019 22:30:24
Fate or Providence is not merely an abstract entity governing our lives trivially. It is the course of someone's life for someone or something, seen as outside their control. It is rather the whole substance in dominating us usually. But that does not mean, a human being should forget all labor and toil to wait for what is stored for him in future.Fate Looms LargeA girl was very diligent and sincere in her studies. She always secured the first rank in her class and was prepared well to appear in her final exams the next day. But her fate was ... Read More 
Updated on 30-Jul-2019 22:30:24
Elements can be filled in a Java int array in a specified range using the java.util.Arrays.fill() method. This method assigns the required int value in the specified range to the int array in Java.The parameters required for the Arrays.fill() method are the array name, the index of the first element to be filled(inclusive), the index of the last element to be filled(exclusive) and the value that is to be stored in the array elements.A program that demonstrates this is given as follows −Example Live Demoimport java.util.Arrays; public class Demo { public static void main(String[] argv) throws Exception { ... Read More Advertisements