Questions tagged as 'java'

1
answer

Registration with RESTful API in java

I need to create a small application with java to allow users to register, I have to use a API RESTful and I would like to know the relationship between the registry that is stored in a database MySQL and API RESTful ....
asked by 22.06.2018 / 22:42
1
answer

Why do I get an error in this Java abstract class? [closed]

package poo; import java.util.Date; import java.util.GregorianCalendar; public class Uso_Persona { public static void main(String[] args) { // TODO Auto-generated method stub Persona[] lasPersonas = new Persona[2];...
asked by 25.04.2018 / 22:22
2
answers

Polymorphism in Java

When polymorphism is used can the methods be overwritten and is polymorphism still considered? for example: the parent class inherits a method from the daughter class and in the daughter class, I write that method to add an attribute of my daugh...
asked by 25.04.2018 / 18:05
1
answer

What is the difference between StackOverflowError and OutOfMemorryError and how can we avoid them in the application? [closed]

I have missed these two errors in Java and I would like to know what difference there is between them, and how can both be avoided?     
asked by 20.04.2018 / 16:20
1
answer

Problem generating Signed APK in android studio

I am trying to generate the Signed APK in android studio but it sends me the following error every time I try: Please correct the above warnings first. My build.gradle has the following code: android { compileSdkVersion 26 defaultConfig...
asked by 30.04.2018 / 00:36
3
answers

Sort string array alphabetically

This is a method that orders a string array using an algorithm, but apparently the code it uses shows an error in the comparison of the if public void ordenar (Array3 a) { String buffer = null; int i =0; while ( i< a.getArreglo(...
asked by 16.11.2018 / 03:06
1
answer

How to make Firebase report changes to me ONLY when I click on a button? Android Studio

I have a problem with the Firebase in Android Studio. I have 2 buttons on my interface, one that is called "Upload Data" and another one called "Get Data". When I click on the "Upload Data" button, it uploads the data perfectly to the Firebas...
asked by 05.11.2018 / 23:17
1
answer

Program in java to calculate fashions of a sample

I have the code to calculate the fashion of a population sample but I do not know what to do if it is a sample of two or more fashions. public static void getModa(double muestra[]) { int maximoNumRepeticiones= 0; double moda= 0;...
asked by 25.08.2017 / 17:02
5
answers

Getters and Setters in Java

Is there any method of annotation in Java 8 (or earlier) to have at least one of the POX classes in the Getters and Setters methods without the need to write them? I speak of something similar to what in C# is done like this: pub...
asked by 06.04.2017 / 10:35
2
answers

automatic onClick

Greetings to all, by chance someone knows how you can make a button to be clicked only after a few seconds. Something like in Waze that one chooses the route and a Button appears (Go now) which after a few seconds is pressed only activating t...
asked by 26.09.2017 / 22:45