Questions tagged as 'poo'

2
answers

Create user Administrator using a view

I am currently taking a project that is very advanced and I am also new to django. I would like to know in what way I can add a user as an administrator from view, normally the developers who started the project did it from the python shell I...
asked by 02.08.2017 / 20:25
1
answer

Objects are not drawn and the display appears in black

I'm using Pygame but I can not get my objects to draw correctly. I do not get any errors and the application responds correctly. The objects are displayed correctly in the console (with print ), only the display appears black. This is m...
asked by 15.07.2017 / 18:33
1
answer

Pattern development with C #

They passed me a program in C # in POO, I have my notions that they are classes and objects, but I wanted to know why in PRODUCTOMODEL first instance Producto pro=new Producto(); and then create Product p to later match. Then I s...
asked by 18.06.2017 / 01:43
0
answers

Can exceptions be created to a selective control structure (If-Else)?

My problem is in a prime number algorithm. The logic that I used in Java was the following: public static void main(String[] args) { Scanner entrada = new Scanner (System.in); System.out.print("Su rango de numeros primos es del 1 ha...
asked by 15.06.2017 / 01:54
1
answer

PHP - POO Difference between calls using literals or references

In PHP we can have a class like the following: class Test { public static function xxx() { //hacer algo } public static function yyy() { //hacer algo } public static function zzz() { //hacer algo...
asked by 14.06.2017 / 00:13
0
answers

how can I refactor these methods in java?

How can I refactor these two methods public void iniciar1() { int numeroCasos = 0; int numeroDigitos = 0; int digitosConsecutivos = 0; int resultado = 0; int validar = 0; Scanner leer = new Scanner(System.in); n...
asked by 04.09.2017 / 02:56
0
answers

File modification

This is the first time that I post in this place, I am a beginner in this of java and I had a small inconvenience when wanting to make a file modification. Well, what happens is that I want to make a file modification sending a window's label...
asked by 29.05.2017 / 22:05
1
answer

Problem when filling JTable with Query?

Hello Colleagues, I am programming in java in MVC pattern and I run into this loop inside my code. I'm using arraylist //Arraylist para llenar una jtable con arreglos public ArrayList<String[]> Select(){ try{...
asked by 24.05.2017 / 16:20
0
answers

How to get specific data of a node in Firebase, or the specific Data of a Java Object

I have these nodes, each of these nodes contains data, They are structured in this way In the "MainActivity" I have a map, on the map there are three markers Each one of these markers contains data which are so I rescue the dat...
asked by 05.05.2017 / 04:47
1
answer

Problem with setSelectedItem in JComboBox

I have a problem fixing an object in a combobox. I explain the situation. I have a mysql a table with a data series (client table), one of those data is a foreign key to another table (city table). In my java program I create an object with the...
asked by 22.04.2017 / 20:25