Has Shimla lost its charm in India?

Ridhi Arora
Updated on 30-Jul-2019 22:30:24
Considered the most popular hill station a few years ago, Shimla is now on its way to lose its old charm. The reasons behind this unfortunate news can be many; however, this has come up as a very grave concern for environmental lovers and experts. Let's dig out how it all occurred:Probable ReasonsThe popularity of Mussoorie, Coorg, Kerala, Rajasthan, Goa is on the rise because the number of young travellers and couples who go to Shimla has come down.The cheap flights even go abroad and it allures the travellers to travel out of the country and keeps Shimla for spared ... Read More

Set file attributes in Java

karthikeya Boyini
Updated on 30-Jul-2019 22:30:24
One of the file attribute that can be set is to make the file read-only. This can be done by using the method java.io.File.setReadOnly(). This method requires no parameters and it returns true if the file is set to read-only and false otherwise.The java.io.File.canRead() and java.io.File.canWrite() methods are used to check whether the file can be read or written to respectively.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");       ... Read More

3d web pages products showcase (future tech)

Prasanna Kotamraju
Updated on 30-Jul-2019 22:30:24
This is how 3d web page will showcase the products -- #futuretechnologyhttps://cdn.soft8soft.com/demo/applications/scooter/index.htmlhttps://eyes.jpl.nasa.gov/apps/experience-insight/InSight.html

Displaying content of a HashMap in Java

Samual Sam
Updated on 30-Jul-2019 22:30:24
Let us first create a HashMap and add elements −HashMap hm = new HashMap(); hm.put("Wallet", new Integer(700)); hm.put("Belt", new Integer(600));To display the content, just print the HashMap object −System.out.println("Map = "+hm);The following is an example to display content of a HashMap −Example Live Demoimport java.util.*; public class Demo { public static void main(String args[]) { // Create hash map HashMap hm = new HashMap(); hm.put("Wallet", new Integer(700)); hm.put("Belt", new Integer(600)); System.out.println("Map = "+hm); } }OutputMap = {Belt=600, Wallet=700}

Remove single element from a HashSet in Java

karthikeya Boyini
Updated on 30-Jul-2019 22:30:24
To remove a single element from a HashSet, use the remove() method.First, create a HashSet −HashSet hs = new HashSet();Now, add elements to the HashSet −hs.add("R"); hs.add("S"); hs.add("T"); hs.add("V"); hs.add("W"); hs.add("Y"); hs.add("Z");Let us now remove an element −hs.remove("R");The following is an example to remove a single element from a HashSet −Example Live Demoimport java.util.*; public class Demo { public static void main(String args[]) { HashSet hs = new HashSet(); // add elements to the hash set hs.add("R"); ... Read More

Is Padmavati a historical or a mythology figure?

Knowledge base
Updated on 30-Jul-2019 22:30:24
Rani Padmini or Padmavati is a historical character, who was first mentioned by the medieval poet Malik Muhammad Jayasi in his poem named “Padmavat” in 1540. Rani Padmini who was popularly known as Padmavati was the legendary Indian queen who lived between 13th and 14th centuries and was the princess of the Sinhala Kingdom, which is today’s Srilanka.According to the HistoryPadmavati was well-known for her astounding beauty and unmatched intelligence, skill, and exceptional prowess. She had a talking pet parrot named Hira-mani, who spoke of her unparalleled beauty to Chittorgarh’s Prince Rana Ratan Singh, who came all the way to ... Read More

Recursive fibonacci method in Java

Vikyath Ram
Updated on 30-Jul-2019 22:30:24
The fibonacci series is a series in which each number is the sum of the previous two numbers. The number at a particular position in the fibonacci series can be obtained using a recursive method.A program that demonstrates this is given as follows:Example Live Demopublic class Demo {    public static long fib(long n) {       if ((n == 0) || (n == 1))          return n;       else          return fib(n - 1) + fib(n - 2);    }    public static void main(String[] args) {       System.out.println("The ... Read More

Why is physical abuse to children illegal?

Ridhi Arora
Updated on 30-Jul-2019 22:30:24
Child abuse is a crime that encompasses a variety of behaviors involving physical, emotional, or sexual mistreatment or neglect upon a child. Abuse child can be in physical, emotional, sexual in form or neglect. Every year millions of children suffer from different type of child abuse.Why is it illegal?Children are the most innocent creations of God. They do not usually do mistakes because they want to or deliberately, but because they either find it fun or they have seen someone elder to them committing the same mistakes. All types of child abuse regardless of the causes; affect the child in ... Read More

Change a file attribute to writable in Java

Samual Sam
Updated on 30-Jul-2019 22:30:24
The file attribute can be changed to writable using the method java.io.File.setWritable(). This method has a single parameter i.e. a boolean value that if true allows the file to be writable and if false disallows the file to be writable. Also, this method returns true if the operation is successful and false otherwise.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();          file.setReadOnly();   ... Read More

Now we have Taimur Dolls!! Peaks of Taimur fever!!

Prasanna Kotamraju
Updated on 30-Jul-2019 22:30:24
Is it believable? Have people gone mad and crazy? Peaks of Taimurism !!!Dressed in a white Kurta and navy blue Pyjamas, accessed with a matching jacket, Taimur dolls have hit the stores. The blue-eyed boy of the Bollywood's power couple Saif Ali Khan and Kareena Kapoor is already breaking the Internet with his cute photos. Now a Doll resembling the Young Prince of Pataudi Royal family is spotted in a Toy shop in Kerala and took the internet by a storm.Extremely popular with paparazzi and the most clicked celebrity kid, Taimur Ali Khan, who is yet to celebrate his 2nd ... Read More
Advertisements