Questions tagged as 'metodos'

2
answers

Error in the switch case that I do not understand

I have made this program that is a stack. In this case I decided to make a menu in which I called the methods but when it comes to calling them it does not work for me, it makes me wrong all the cases. I think my mistake is when calling the m...
asked by 30.05.2018 / 11:50
2
answers

Split string c ++. (split) [duplicate]

Good morning community. How to split a string? Suppose that: string cadena = "abc#123#faker"; The procedure would be that when you get a "#" assign to the resulting string. What I want to be able to do is save in another array s...
asked by 20.04.2017 / 05:02
1
answer

Problem calling methods in the menu

Hi, I would like to know if someone can clarify how to call methods in java menus. My question is the following (attached program for the example): public void imprimir() { Nodo reco=raiz; System.out.println("Listado de todos l...
asked by 29.05.2018 / 13:07
1
answer

Can you help me with the method to make the array eliminate the repeated numbers? [closed]

public static double[] exercici2(double[] a) { for (int i = 0; i < a.length; i++) { double num = a[i]; for (int j = i+1; j < a.length; j++) { if (num != a[j]) { a[i] =a[j]; }...
asked by 11.04.2018 / 17:46