Questions tagged as 'variables'

2
answers

Declaring variable of the same type of class that contains it

Greetings I've been studying data structures and I've run into a very curious syntax and I've been trying to find answers and I have not found them. public class CNodo { //Aqui colocamos el dato o datos que guarda el nodo private int...
asked by 12.10.2018 / 15:57
1
answer

Create addEventListener in a span whose id is contained in a variable

good morning. First of all I apologize for how unclear the title is, I have not been able to describe it better. Secondly, I clarify that what I am going to put here is an invented and simple example so that you understand what is my doubt and a...
asked by 21.02.2017 / 16:19
3
answers

Passing variables in a Java program

I am learning how to program and I have a problem with my public static void main(String[] args) {... I have a variable that within this procedure changes the value of that variable I need to use it in another class. Example: the variabl...
asked by 20.10.2016 / 13:23
2
answers

Kivy: Display a text saved in a variable

based on the example of this question I want to make a program that shows me a text saved in a variable, "g". There goes the code: # config from kivy.config import Config Config.set('kivy', 'keyboard_mode', 'system') #¿Para qué sirve esta lí...
asked by 15.04.2017 / 21:16
2
answers

Error when obtaining the value of a variable

I have a problem with obtaining the data of a variable, It happens that I am doing a function that at the end of accounts must sumar of one on the initial value of the variable "n" , but I only get it to show by screen the initial v...
asked by 23.04.2017 / 04:05
1
answer

The for cycle in javascript, can you alter variables?

I have a question, I found the following code to calculate the factorial number of a whole number, but I am doing my desktop run and I can not understand the code because it is assumed that in the process of the factorial it multiplies by all th...
asked by 06.04.2017 / 21:36
2
answers

call a variable in another php without get or post

Thank you very much to the community in advance. good to the matter, I have created a simple dynamic select option that when selecting a client in the next select option your pets come out. Here I charge the clients in the first select o...
asked by 21.10.2016 / 07:11
2
answers

factorial of a number without overflowing the long variable?

I have a code that performs permutations, and at first seems to work, the problem is that when you enter a number greater than 20 the results are erroneous and as I read and it is because they leave so many result characters that are not possibl...
asked by 01.08.2017 / 09:59
1
answer

Parameter "variable ..." in methods [duplicated]

Good, I've come across a new style of variables when using the FileNameExtensionFilter class. The constructor that uses has 2 parameters type String only that the second is different from the ones that I already know, it supports a set of vari...
asked by 05.06.2016 / 01:45
2
answers

Send value of a variable from one method to another javascript

Hello, I have the following methods in javascript: function buscarC(consulta) { var result = ""; var buscado = ""; $.ajax({ dataType: 'json', url: 'http://localhost:8080/tesisv2/webresources/generic/buscarxC?courseDisplayName=' + consu...
asked by 08.08.2017 / 19:04