Questions tagged as 'java'

2
answers

How to interpret operators in Java

Today reviewing some things of the operators I have found something like this: public class Pruebas { public static void main(String[] args) { boolean a=false; boolean b=false; boolean c=true; System.out.println(!a|b&&am...
asked by 07.06.2016 / 20:07
1
answer

Create a key value list in Java

How to create a list in Java Android of the type dictionary that is to say that content can be stored clave:valor , the key and its value are String . Update 1 I have done the following: Map<String, String> l...
asked by 25.04.2016 / 19:21
2
answers

Add Layouts programmatically on Android

Good, I need to know how to create Layouts programmatically in ANDROID, such as TextViews, RadioButtons, etc. That is, with Java code.     
asked by 24.05.2016 / 02:32
2
answers

Verify Data

I'm blocked and I do not know how to move forward. I have the following information: String Equiv1=""; String Equiv2=""; String equivalencia1=""; public int probarEquiv1 (){ Equiv1 =ConversorNou.PrimeraDivisaTXT.getText();...
asked by 10.04.2016 / 04:03
1
answer

Simple Recycleview on Android

I'm trying to create a list with simple content, that is, each element is shown in a single line ArrayList<String> list = new ArrayList<String>(); list.add("Simple Item1"); list.add("Simple Item2"); list.add("Simpl...
asked by 30.03.2016 / 20:09
2
answers

Error android.content.res.Resources $ NotFoundException: String resource ID # 0xbb8 on Android

I get the following error:    android.content.res.Resources $ NotFoundException: String resource ID # 0xbb8 Error log: 09-29 19:23:27.975 E/AndroidRuntime: FATAL EXCEPTION: main Process: app.descubrirosona.lite, PID: 27051 android.c...
asked by 29.09.2016 / 19:34
4
answers

The cycle for does not work for me [closed]

For some reason the cycles for does not work for me in eclipse luna, update the jdk but it's still the same, this is the simple code public class main { public static void main(String[] arg) { System.out.println("inicio"); for(int i =...
asked by 02.10.2018 / 07:00
1
answer

'if' with a boolean that does not act according to the [closed] documentation

I am working against an Active Directory and the server response is a boolean. And always, always, enter the "true" part of the if. I have done debug returns false the validation against the Active Directory has gone well or badly....
asked by 13.09.2018 / 13:22
2
answers

How to use the OR Expresion Languaje with three parameters

I am using el in jsf in the following tag <h:outputLabel value="#{msg.fecha}" rendered="#{aperturaDoBean.dataItem6.idServicio ne 4 || aperturaDoBean.dataItem6.idServicio ne 3 || aperturaDoBean.dataIt...
asked by 18.07.2016 / 21:14
2
answers

trying to generate a fibonacci sequence 0,1,1,2,3,5,8,13,21,34 with for loop and without the final comma

This is my code, if I do not put conditions I get everything but I add a final comma and trying to filter the last position of i with an if () omits the last two numbers. public class EjercicioFibonacci { public static void main(String[] a...
asked by 27.05.2018 / 16:25