What is Alexa?

Prasanna Kotamraju
Updated on 27-Jun-2020 09:43:16
Alexa is Amazon’s cloud-based voice service available on tens of millions of devices ranging from Amazon to many third-party device manufacturers. Alexa allows you to build natural voice experiences that offer customers a more intuitive way to interact with the technology they use every day.Alexa is Amazon’s artificial intelligence enabled voice assistant which is spreading like wildfire and seen in robots, vacuum cleaners, and thousands of third-party apps that tap Alexa for voice recognition. Amazon has recently announced the Alexa app for Android phones also.

Why is it that there are hardly any weight loss regimens/treatments that really work?

Prasanna Kotamraju
Updated on 27-Jun-2020 09:41:42
Weight loss regimens have to be planned scientifically and monitored closely. Somebody tells about some home remedies to reduce your weight which has worked on them. You immediately start working on it and you find no results. This happens because weight reduction involves knowledge of your BMI - Body Mass Index and your medical conditions like Hypothyroid etc., If you start working on weight loss simply ignoring these facts, you will not lose weight and above that, you will feel demotivated.It is not true that weight loss treatments do not work. They will definitely work if you follow them scrupulously ... Read More

Will Ram Gopal Varma makes movie on himself?

Prasanna Kotamraju
Updated on 27-Jun-2020 09:40:43
Yes... He can do it. I have watched many of his interviews and read much about him. He is a different kind of director who loves to experiment. Previously he made a movie criticizing directors, being a director himself.It is quite possible for him to make a movie on himself.

What is the real happiness mean?

Prasanna Kotamraju
Updated on 27-Jun-2020 09:40:04
Happiness is a very relative term. It is such a relative term that it changes for the same person every minute when something changes in the life.For instance, a person who is used to travel by car has to one day walk in the hot sun .. he sulks and still walks forced by the situation. If somebody offers him an umbrella he will be happy. Technically he should not be happy unless he gets back his car. But as per given situation at that moment he feels happy for an umbrella. What I mean to say is happiness is ... Read More

Set a GregorianCalendar object to a particular date in Java

karthikeya Boyini
Updated on 27-Jun-2020 09:37:21
To work with the GregorianCalendar class, import the following package.import java.util.GregorianCalendar;Firstly, create a GregorianCalendar object.GregorianCalendar calendar = new GregorianCalendar();Now, set the above-created object to a date. Here 0 is for 1st month.calendar.set(2018, 0, 25);The following is an example.Example Live Demoimport java.util.GregorianCalendar; import java.util.Calendar; import java.util.Date; public class Demo {    public static void main(String[] args) {       GregorianCalendar calendar = new GregorianCalendar();       // 0 is for 1st month       calendar.set(2018, 0, 25);       System.out.println("" + calendar.getTime());    } }OutputThu Jan 25 16:51:24 UTC 2018

Java Program to get the day of the week from GregorianCalendar

Samual Sam
Updated on 27-Jun-2020 09:36:40
For GregorianCalendar class, import the following package.import java.util.GregorianCalendar;Create an object.GregorianCalendar calendar = new GregorianCalendar();To get the day of the week, use the following field.GregorianCalendar.DAY_OF_WEEKThe following is an example.Example Live Demoimport java.util.Calendar; import java.util.GregorianCalendar; public class Demo {    public static void main(String[] a) {       GregorianCalendar calendar = new GregorianCalendar();       System.out.println("Day of Week = " + calendar.get(GregorianCalendar.DAY_OF_WEEK));       System.out.println("Date = " + calendar.get(GregorianCalendar.DATE));       System.out.println("Month = " + calendar.get(GregorianCalendar.MONTH));       System.out.println("Year = " + calendar.get(GregorianCalendar.YEAR));    } }OutputDay of Week = 2 Date = 19 Month = 10 Year = ... Read More

What is the link between Phi and the Golden Ratio?

Prasanna Kotamraju
Updated on 27-Jun-2020 09:35:14
Phi is the basis for the Golden Ratio, Section or Mean. The value of Phi ( Φ ) is 1.618033988749895. It has many unusual mathematical properties.The Golden ratio is a special number found by dividing a line into two parts so that the longer part divided by the smaller part is also equal to the whole length divided by the longer part. It is often symbolized using phi, after the 21st letter of the Greek alphabet.The ratio or proportion, determined by Phi (1.618 …) was known to the Greeks as the “dividing a line in the extreme and mean ratio” ... Read More

Modify Date and Time from GregorianCalendar in Java

karthikeya Boyini
Updated on 27-Jun-2020 09:33:19
For GregorianCalendar class, import the following package.import java.util.GregorianCalendar;Firstly, let us display the current date and time.GregorianCalendar cal = (GregorianCalendar) GregorianCalendar.getInstance(); System.out.println("Current date: " + cal.getTime());Now, modify the date. Here we are adding two days to the month using the add() method.cal.add((GregorianCalendar.MONTH), 2);Example Live Demoimport java.util.Calendar; import java.util.GregorianCalendar; public class Demo {    public static void main(String[] a) {       GregorianCalendar cal = (GregorianCalendar) GregorianCalendar.getInstance();       System.out.println("Current date: " + cal.getTime());       cal.add((GregorianCalendar.MONTH), 2);       System.out.println("Modified date: " + cal.getTime());    } }OutputCurrent date: Mon Nov 19 17:52:55 UTC 2018 Modified date: Sat Jan ... Read More

Java Program to display previous year from GregorianCalendar

Samual Sam
Updated on 27-Jun-2020 09:32:26
For GregorianCalendar class, import the following package.import java.util.GregorianCalendar;Create an object.GregorianCalendar cal = (GregorianCalendar) GregorianCalendar.getInstance();Now, use the following field and add() method with a negative one (-1) to display the previous year.cal.add((GregorianCalendar.YEAR), -1)Example Live Demoimport java.util.Calendar; import java.util.GregorianCalendar; public class Demo {    public static void main(String[] a) {       GregorianCalendar cal = (GregorianCalendar) GregorianCalendar.getInstance();       System.out.println("Current date: " + cal.getTime());       // previous year       cal.add((GregorianCalendar.YEAR), -1);       System.out.println("Modified date: " + cal.getTime());    } }OutputCurrent date: Mon Nov 19 18:05:49 UTC 2018 Modified date: Sun Nov 19 18:05:49 UTC 2017

Java Program to display past date from GregorianCalendar

karthikeya Boyini
Updated on 27-Jun-2020 09:31:24
For GregorianCalendar class, import the following package.import java.util.GregorianCalendar;Here is the object.GregorianCalendar cal = (GregorianCalendar) GregorianCalendar.getInstance();Now, let us get the past date, using the add() method with a negative value.// past date cal.add((GregorianCalendar.DATE), -1);Example Live Demoimport java.util.Calendar; import java.util.GregorianCalendar; public class Demo {    public static void main(String[] a) {       GregorianCalendar cal = (GregorianCalendar) GregorianCalendar.getInstance();       System.out.println("Current date: " + cal.getTime());       // past date       cal.add((GregorianCalendar.DATE), -1);       System.out.println("Modified date (Previous Date): " + cal.getTime());    } }OutputCurrent date: Mon Nov 19 18:01:37 UTC 2018 Modified date (Previous Month): Fri ... Read More
Advertisements