Questions tagged as 'constructor'

1
answer

call a constructor from another builder in java

for a practice exercise I have two constructors to create a table, in one of them I receive as arguments a matrix with the data and a vector with the headers, I want to insert the headers in the matrix and then send the edited matrix to the fina...
asked by 11.09.2018 / 15:39
0
answers

Game of life ERROR

I'm doing a somewhat simple code of Conway's famous "Game of Life", this is the creation of the arrangement public class FunInicio { public int [][] llenado() { int [][] you = new int [10][10]; for (int i=0; i<y...
asked by 23.05.2018 / 10:31
1
answer

enter data Scanner to constructor

Someone who explains to me please, how can I invoke the other classes using the constructor with the data that I enter by keyboard using Scanner, thanks. CODE: import java.util.*; class Principal{ public static void main(String[] args)...
asked by 15.05.2018 / 02:13
0
answers

How to pass a reference to it to a constructor of the main class?

The fact is that I am doing a calculator for my programming classes, nothing complicated but this is stuck in the end. I have a VentanaPrincipal class that is the graphical interface created with swing. And I have a PanelOperations class, where...
asked by 29.01.2018 / 00:03
1
answer

Question about classes in javascript

Hello, I do not understand Invoice that is exactly ... I know that it is a template for all others that I can create with new, but Invoice itself is a object or a function with constructor method, get and set, because if I do console.log tell...
asked by 12.01.2018 / 21:27
0
answers

Problem in Java Interface "Problematic call in constructor"

In this part NetBeans marks this error    "Problematic call in constructor" public VentanaPrincipal() { initComponents(); setLocationRelativeTo(null); setResizable(false); setTitle(VentanaPrincipal);     
asked by 07.08.2017 / 04:09
1
answer

View information from a json with angular

I have a json created with information that I want to visualize on the page with the use of {{}} and to do this I use the Http module and a service, but for this I have to add in the header constructor and the footer (which is where I want to vi...
asked by 06.12.2017 / 03:20