- 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
Use the remove() method to remove a value from TreeMap.Create a TreeMap first and add some elements −TreeMap m = new TreeMap(); m.put(1, "PHP"); m.put(2, "jQuery"); m.put(3, "JavaScript"); m.put(4, "Ruby"); m.put(5, "Java"); m.put(6, "AngularJS"); m.put(7, "ExpressJS");Now, let’s say you need to remove a value with key 5. For that, use the remove() method −Object ob = m.remove(5);The following is an example to remove a value from TreeMap −Example Live Demoimport java.util.*; public class Demo { public static void main(String args[]) { TreeMap m = new TreeMap(); m.put(1, "PHP"); m.put(2, "jQuery"); ... Read More 
Updated on 30-Jul-2019 22:30:24
The completion of the first year of Marriage is a great time to celebrate the uniqueness of love both of you have shared till now! This is how you can make your first anniversary memorable:Plan A Different RoutineThe daily chores and routine work schedule bore you. Take a break to celebrate this day by adding some new flavors to your special day. Plan your day filling with excitement and fun.Explore New Horizons: If both of you have a dream place to visit and have never gone there before, plan for it. Confused about choosing from many options? Go for a ... Read More 
Updated on 30-Jul-2019 22:30:24
The #MeToo movement which started as a simple tweet has now become a global phenomenon and resistance against sexual harassment. It has turned out to be a great movement with a lot of momentum and gave women the much-needed courage to speak up. No more suffering silently.In no time it has become a global movement and many women are coming up and speaking about their sufferings, especially women in the glamour field. This has encouraged every woman whether working or a housewife to come out in public and reveal the assaults and abuses which they have been suffering silently. This ... Read More 
Updated on 30-Jul-2019 22:30:24
In computer networking, pipelining is the method of sending multiple data units without waiting for an acknowledgment for the first frame sent. Pipelining ensures better utilization of network resources and also increases the speed of delivery, particularly in situations where a large number of data units make up a message to be sent.Flow Diagram of Pipelined Data TransmissionThe following flow diagram depicts data transmission in a pipelined system versus that in a non-pipelined system. Here, pipelining is incorporated in the data link layer, and four data link layer frames are sequentially transmitted.Data Link Protocols that uses PipeliningTwo data link layer ... Read More 
Updated on 30-Jul-2019 22:30:24
A new empty file with the required abstract path name can be created using the method java.io.File.createNewFile(). This method requires no parameters and it returns true if the file is newly created and it did not exist previously. If the file existed previously, it returns false.A program that demonstrates this is given as follows −Example Live Demoimport java.io.File; public class Demo { public static void main(String[] args) { try { File file = new File("demo1.txt"); file.createNewFile(); System.out.println("File: " + file); } catch(Exception ... Read More 
Updated on 30-Jul-2019 22:30:24
To get the creation date of MySQL table, use the information_schema. The syntax is as follows −SELECT create_time FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = 'yourDatabaseName’ AND table_name = 'yourTableName';Apply the above syntax for your database and the table name. Here I am using the database ‘business’ and table name is ‘student’. The query is as follows −mysql> SELECT create_time FROM INFORMATION_SCHEMA.TABLES -> WHERE table_schema = 'business' -> AND table_name = 'student';The following is the output displaying the creation time of a table −+---------------------+ | CREATE_TIME ... Read More 
Updated on 30-Jul-2019 22:30:24
To get difference between two timestamps in seconds, use two in-built functions TIME_TO_SEC() and TIMEDIFF() in MySQL. The syntax is as follows −select time_to_sec(timediff(yourCoulnName1, yourCoulnName2)) as anyVariableName from yourTableName;To understand the above concept, let us first create a table. The query to create a table.mysql> create table TimeToSecond −> ( −> MyTime timestamp, −> YourTime timestamp −> ); Query OK, 0 rows affected (0.48 sec)Now you can insert some datetime values in the table. The query is as follows −mysql> insert into TimeToSecond values('2016-05-10 10:02:00', '2016-05-10 10:00:00'); Query ... Read More 
Updated on 30-Jul-2019 22:30:24
Use the get() method to get the value associated with a given key.Here is our HashMap and its elements −// Create a hash map HashMap hm = new HashMap(); // Put elements to the map hm.put("Bag", new Integer(1100)); hm.put("Sunglasses", new Integer(2000)); hm.put("Frames", new Integer(800)); hm.put("Wallet", new Integer(700)); hm.put("Belt", new Integer(600));To get the associated value. the key is set as a parameter like this −hm.get("Frames")Above, the key is Frames and we are fetching the value associated with it.The following is an example to get the value associated with a given key in Java HashMap −Example Live Demoimport java.util.*; public class Demo { ... Read More 
Updated on 30-Jul-2019 22:30:24
The engineering societies such as AAES, ABET, NSPE, IEEE, and AICTE have framed these codes of ethics which are helpful to engineers to strengthen the moral issues on their work. The codes of ethics play at least eight important roles such as the following.Serving and Protecting the PublicEngineers are in a responsible position where trust and trustworthiness, both are essential. A code of ethics functions as a commitment to the profession as a whole that engineers will serve the public health, safety, and welfare. All the remaining ones contribute to this function in some or other way.GuidanceCodes are written in ... Read More 
Updated on 30-Jul-2019 22:30:24
Being a Parent, I understood that a child always learns from what you do, not from what you say. They observe and then follow your actions. So, it is better to make them learn from the way they are. But for this, a parent should always be strong. Hence I feel that being a parent, if you cannot handle anything and not being mentally strong to tolerate some disturbances in your life, you can hardly expect your child to manage the same skillfully.The Incident Melted Our HeartsThree years ago, when my little daughter observed that we were facing some financial ... Read More Advertisements