Posts by Ana • 57 points
5 posts
-
3
votes2
answers105
viewsQ: Force every instance to have 2 attributes
Hello, I have an Employee class with the attributes name, code and salary (all private), and a Manager class - which extends Employee - with the attribute quantityFunctionaries, also private. How…
-
-1
votes1
answer5821
viewsQ: Generate sequential number in java
Hello, I have a Student class with the attributes name and enrollment. The user can enter the name by setNome(), but I would like to know how to make the registration is generated automatically (1,…
-
0
votes2
answers2260
viewsQ: Store customers inside an Arraylist
Taking into account the classes below, how can I - within the Bank class - store within the Arraylist all my customers? Bench public class Banco { private ArrayList<Conta> contas; public…
-
1
votes2
answers1312
viewsQ: Use SQL LIKE to find a number followed by space
I have a field that gathers values that are sequences of numbers separated by space and comma, such as: "1 , 2 , 3 , 23 , 41 , 54" I was using SQL inside PHP to find a number inside this field with…
-
0
votes1
answer349
views