Questions tagged as 'java'

1
answer

Differences between "Push" and "Commit & push" in Android Studio

I am a student of programming, every time I give push in android studio does not upload anything to the repository, but if I give a commit & push up the changes, I would like to explain the difference between these and the use that should gi...
asked by 17.06.2018 / 01:46
1
answer

Send data from a txt to Java

Well, my problem is as follows. My program has to read the data from a .txt and get the average and classify them. I managed to do it but entering the numbers directly from the code. int age [] = {3,12,1,20,52,10,3,20,99,12,52,4,43,20,99};...
asked by 06.06.2018 / 04:00
1
answer

How to save a persistent variable in java even if you close the program [closed]

How to save the value of a variable in java so that after the program closes and reopens, the variable retains its value? Is that I have a java program that I need to execute a few functions x only once, my plan is to create a persistent boolean...
asked by 06.06.2018 / 04:52
1
answer

What is the use of adding / faces / in the web.xml?

I need to clarify this doubt. I hope you help me. <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:...
asked by 05.06.2018 / 16:31
1
answer

print sum of matrices in java

Hellos ppl, I come with a curiosity, the code below works well, if I have the following arrays: int [][] vec1 = {{1,2,3},{4,5,6}}; int [][] vec2 = {{7,8,9},{10,11,12}}; It gives me as a result: [ 8 10 12 14 16 1...
asked by 01.07.2018 / 02:37
1
answer

daughter class method visible from the superclass

I have a superclass (Footwear) and daughter classes (Shoe-Shoe). I have a getIva () method in the Slipper class and I need to recover this Iva value from the superclass. The handling with the super is resolved, and I do not identify how to re...
asked by 02.07.2018 / 03:24
1
answer

Run .class with library from cmd

Before I asked about how to execute a class here In summary the sentence that has worked for me has been: java -cp . com.index.Clase The problem is that when executing that sentence, it throws an exception saying that it does not find...
asked by 15.07.2018 / 13:39
1
answer

Show name according to select in other input

I have a table where I have, the id, department code and the full name of this and what I want is that when I select an option, the full name of the department appears but it is only showing me the id I have this function to do that functi...
asked by 14.07.2018 / 02:41
1
answer

API Rest - Many to One

I am trying to create a one to many relationship, my problem is that when I make a request with the entity that has the ManyToOne this does not return anything is limited to giving me an error of Expected ':' instead of 'a' . The entiti...
asked by 16.09.2018 / 15:43
1
answer

How to get a two-dimensional array from an arrayList public ArrayListString [] []

I have the structure of the following function: public String [][] obtieneMinimoEstadoHijos(ArrayList<String[][]>listaEstadosHijos){ } I've searched for information on how to print the matrices contained in an arrayList. But I can n...
asked by 16.09.2018 / 11:24