Questions tagged as 'java'

1
answer

compare saved data in Android Studio Firebase

I have the structure corresponding to the data stored in Firebase Database via android I want to obtain the data indicated in red the last 2 or 3 "doses" saved. I have this structure but I do not know if it is the correct one to obtain...
asked by 05.10.2018 / 02:43
1
answer

Add data to JSONArray comparing data

According to the case that presented before like restlessness ... Add data to JSONArray Now, for this very thing for (int l = 0; l < lineas.length(); l++) { lineas.getJSONObject(l).put("importe_aumentado", json.getJSONObject(l).get...
asked by 24.09.2018 / 14:07
1
answer

Call last three values in Firebase Database Android Studio

I have this code and it calls me the "Node" line that I have saved in Firebase Database DatabaseReference fReference = database.getReference().child(Lista); final StringBuilder sb=new StringBuilder(); final StringBuilder sp=new StringBuil...
asked by 04.10.2018 / 00:09
1
answer

How to solve average within the for? Java Cycle For

It is requested to develop the algorithm to manage the grades of the students of basic programming I. It is known that the number of students is 10. You should be able to enter: a. Student ID b. Career (w - Technician in Development o...
asked by 04.10.2018 / 23:26
1
answer

How to cast a String to several separate Java integers

I have one entry per console that has two separate integers but in a single line, that is, if the input is "2 4" I have to store in one variable the 2 and in another the 4. (These as int type ). For this I must use the BufferedReader library, I...
asked by 05.11.2018 / 04:52
1
answer

Count the words with vowels

This is a function to count the words that start with a vowel and end with this same vowel, but I only get an error. this is the function public int vocal2 (Frase f) { StringTokenizer tk = new StringTokenizer (f.getOracion()); int i...
asked by 05.11.2018 / 08:34
1
answer

Problem java characters in Eclipse

When importing a project in eclipse I get errors in the characters of my java file. I give an example, does anyone know the solution? System.out.println("ERROR:al cerrar la conexión");     
asked by 05.11.2018 / 19:41
2
answers

Error: NullPointerException to null object reference (Android)

I have a project in Android in which I send the value of a variable from Adapter to Activity like this: public void onClick(View v) { Intent inicioIntent = new Intent(context, Activity2.class); inicioIntent.putExtra("idU",...
asked by 13.09.2018 / 17:48
1
answer

Doubt insert java project to java web project

I have a project Java in my workspace with several classes called "functions". Then I created a java web project and added the project in Java build path -> projects . But once I started in index and used some ki...
asked by 13.09.2018 / 16:02
1
answer

I have a question about this error in order to make an insert in the form, the request line marks error and I do not understand why [duplicated]

type Informe de Excepción mensaje Ha sucedido una excepción al procesar la página JSP /Cliente.jsp en línea 56 descripción El servidor encontró un error interno que hizo que no pudiera rellenar este requerimiento. excepción org.apache.jaspe...
asked by 02.09.2018 / 06:11