Questions tagged as 'java'

1
answer

Allow operator entry by the user

I want to replace the variables izquierda and derecha with user entries. How could I do it? public class Test { /** * @param args the command line arguments */ public static void main(String[] args) { float cal...
asked by 13.12.2017 / 17:24
1
answer

Is it correct to implement two or more interfaces in the same class in POO?

Currently I want to start a project that will scale in the future to an extent that I do not know, so I would like to know if this is the correct way to apply interfaces in the classes Form (By method): Generate an interface for each stand...
asked by 21.01.2018 / 21:35
1
answer

VOLLEY Android Asynchronic

I have the following method that brings me a balance String rq = RequestManager.accountBalance(numeroTelefonico); GenericController gC = new GenericController(true); gC.accBalance(this, rq, new Response.Listener<AccountB...
asked by 23.01.2018 / 14:34
1
answer

No Save SparceBooleanArray Listview Android

I am wanting to save the positions of the items marked in listView by means of a chekbox in each item. Each time I check the items, I only save the last checked data. To check I made it show with each check a Log of sparseBooleanArray.size () in...
asked by 22.12.2017 / 02:10
1
answer

Java Compilation error

I am currently creating a web project with java in netbeans, at the moment of giving it to compile, it throws me the following error    ant -f C: \ Users \ User \ Documents \ NetBeansProjects \ Web Application -Dnb.internal.action.name = run...
asked by 06.12.2017 / 23:34
2
answers

Put default data in Android Database

I have a kind of registration form and I would like to know if, for example, if you do not put anything as a password, you will enter a default password. So I have the registration method private void register(){ String user = etuse...
asked by 07.12.2017 / 01:45
1
answer

Fill the contents of an array between classes

I'm doing an application on android, and I need an activity from an array created in another class since from a second activity I'll get the created data, however I can not add data to the array from the first activity. //CLASE QUE MANDA INSER...
asked by 06.12.2017 / 20:57
1
answer

how to print array with strings? [closed]

Hi, I'm learning java, I'm doing a program where the user can enter several names with their birthday but I'm stuck because I want to print the list of names that I previously asked and put in an array using a scanner but I get this when I run t...
asked by 07.12.2017 / 17:50
1
answer

Help with Java inheritance, inherit variables

Today I come because I have a problem and I have been breaking my head for almost the entire morning and I have not achieved anything. What happens is that in the following code I want to inherit the variables X, Y (with their numbers) but it do...
asked by 08.12.2017 / 15:56
1
answer

Problem with Matrix

You will see I am doing a program in which you ask for the elements of a matrix and it returns them to me, the point is that when you execute it, you return the last value that you enter repeatedly. Example if I assign a 2x2 matrix it asks me fo...
asked by 10.12.2017 / 17:15