Questions tagged as 'poo'

1
answer

Error in java "Exception in thread" main "java.lang.NullPointerException" when compiling [duplicate]

The Exception in thread error "main" java.lang.NullPointerException locates it on line 21. Any ideas? class Factura{ private static final int MAX_ITEMS = 100; private String fecha; private String nombreCliente; private Item[] items = new It...
asked by 18.10.2017 / 17:12
1
answer

Clubs and decks, how to hand out different hands? POO

I must create a program that generates me Cards (As - King) and also Clubs, these same ones will be distributed to 3 users (each user will have 6 cards) and must show a sum. The program already does all that but there is a problem that I still c...
asked by 08.10.2017 / 20:12
1
answer

Problem showing the total

who can tell me why he does not show me the total (calculated), I have already called the setCalcular method but the total he shows is 0 Customers Class private String nombre = "", apellido = "", placa = ""; public String clientet = "", ve...
asked by 16.10.2017 / 02:45
1
answer

Arraylist only with approved students

Good I have an exercise carried out where I introduce a series of data of students and I keep them in an arraylist. What I want is to save in another arraylist only the students whose average grade is greater than or equal to 5 but I do not know...
asked by 27.08.2017 / 10:54
1
answer

constructor per copy in c ++

Good day! I wanted to make a query: I'm new to seeing c ++, but I've seen that when they create objects, when making the constructor by copy, when they define the method, what happens is the memory position of the object they copy, and from ther...
asked by 21.09.2017 / 13:52
1
answer

Castings on derived class objects

I have a question about the solution to the following exercise; In the main class, when I call the force () or telekinesis () methods (which are in the derived classes), I have to do several castings on a vector that declares the type of the par...
asked by 23.08.2017 / 03:18
1
answer

How to handle text files to save scores of a game?

The idea is that when the user dies he enters his name and it is saved along with his score keeping the names and scores that were already saved. the problem is that the code I have only overwrites the previous file and saves the last name enter...
asked by 15.06.2017 / 03:59
2
answers

PHP object oriented - Exercise Coffee

Dear, I am a bit confused with this PHP exercise. Develop a Coffee class with attributes _Maximum capacity (the amount maximum coffee that the coffee machine can contain) and _quantityCurrent (the amount current coffee in the coffee maker)....
asked by 16.05.2017 / 01:59
2
answers

Problems with autoload in php

Colleagues I have the following question, it turns out that I am working with mvc without a framework, and I have problems with autoload gives me the following error    Fatal error: Uncaught Error: Class 'Model \ ProjectModel' not found in...
asked by 19.10.2017 / 20:09
1
answer

A division using ArrayList

Exercise: Using ArrayList create a program that divides 2 very large numbers (digits greater than 10). I already 'solved' the exercise but it does not occupy ArrayList because I did not know how to apply it. I do not know how....
asked by 15.09.2017 / 08:18