Questions tagged as 'clase'

3
answers

How to print class data?

In the method queueAnalysis , when I send to print System.out.println("Original: " + queue + "\n"); , System.out.println("colados: " + names + "\n"); and          System.out.println("Cola final: " +queue); , gives me as...
asked by 21.09.2017 / 17:53
2
answers

Delete a class but java keeps finding it

As the title says, I initially had the class PantallaConsultaPaciente , then I created the class PantallaConsultaPaciente2 and eliminated the previous one, but when I run the application from Eclipse, I still raise PantallaConsul...
asked by 06.09.2016 / 16:47
3
answers

Create ArrayList, add several data to the same array from other classes and print them?

Finally, with the help of my teacher, I was able to achieve it, I attached the source code. package prueba2; import java.util.Scanner; import java.util.ArrayList; public class Concesionario { public static void main(String[] args) { List...
asked by 22.06.2017 / 03:51
2
answers

How do I make a variable of the same type of class in Javascript?

I want to make a simple list linked with javascript and for that, I need to make a variable of the same type of the class, in Java I did it like this: class Nodo{ public char datoNodo; public Nodo sgte; public Nodo(char dato){...
asked by 09.08.2018 / 23:07
1
answer

Question about methods and classes in Javascript

My question is: To call the client method and total it is not necessary () since they are methods, but why to print if I need parentheses? If it is because it is a normal and current function, why can not you put function in front? class...
asked by 13.01.2018 / 12:56
1
answer

Differences between "foo instanceof Type" and "foo.getClass () == Type.class / fuu.getClass ()"

When determining if an object belongs to a type, basically one of these two solutions is used: foo instanceof Tipo; O foo.getClass() == Tipo.class; The question is: What advantages and disadvantages does each one offer and in which cas...
asked by 30.11.2016 / 13:06
2
answers

At what point are the properties calculated? C #

I'm using C # and I got the following doubt, In a class in which I define a calculated read-only property, for example, a simple class public class UnaClase { public int Num1 { get; set; } public int Num2 { get; set; } public in...
asked by 14.12.2018 / 15:28
1
answer

Help with class instance that contains array of string

Hi, I have a class with an array as a variable: public string history; public string[] answers; public StoryNode[] nextNode; public bool isFinal = false; I want to create a reference in another class, as I must fill in the a...
asked by 09.10.2017 / 14:27
2
answers

Doubt about class definition

Good morning. I'm new to JAVA. My question is about the definition of a method whose return value is of the same type as the class that is being defined. I really do not understand how this mechanism works. I leave an extract of a class to sh...
asked by 21.04.2017 / 05:30
1
answer

Call to functions nested in STRUCT within a CLASS

I have this implementation of a class that handles linked lists. The issue is that I'm using primitive functions in the struct I use within the class, however I do not know much about it, and I do not know how to invoke the functions. Here...
asked by 11.05.2017 / 01:30