Posts by Lucas_Menchone • 395 points
9 posts
-
0
votes3
answers809
viewsQ: C program "eating" characters when executed
Next, All Ides I program in C are output with characters less with each iteration. For example, when executing a for, every iteration one or more characters disappear: Note that in both netbeans and…
-
0
votes1
answer54
viewsQ: Nullpointerexception when comparing two String arrays in java
I have two String matrices and when executing this: if (prod[i][0].equals(temporaria[j][0]) && prod[i][0]!= null && temporaria[j][0]!= null) get Nullpointerexception without at least…
-
0
votes1
answer1368
viewsQ: How to find Null values without specifying attribute (Mariadb)
I would like to do a search to find NULL values across the table without having to determine which of the attributes might contain NULL. NOTE: By ALL table I mean that somewhere in it you have null,…
-
2
votes1
answer697
viewsQ: For inside a Java Switch
Good night, I wonder if there is a way to declare a 'FOR' within a SWITCH CASE in Java because Netbeans is making an error right here. I’m trying to make an application to perform a guessing game…
-
11
votes4
answers870
viewsQ: Why can an if be redundant?
Using a method that returns a boolean the system would determine whether a number is positive or negative. So I did it this way: public boolean isPositive(float num) { boolean positive; if (num…
-
1
votes2
answers1564
viewsQ: Inserting a text input with a PHP button
I’m a beginner in PHP and would like to know if there is a way to add an input text in PHP using a button. I am developing a php application for warehouse control and I want to create a merchandise…
-
0
votes1
answer1470
viewsQ: How is a specialization implemented in a bank?
In my ER model and diagram I created a specialization for an entity called clients, where it relates to the physical and legal entities derived from this specialization. I simply create the…
-
5
votes2
answers91876
viewsA: How to add a Foreign key to an already created table
Solved - The Primary key of the 'person' table was unsigned so there was a data type incompatibility. But I’ve been able to clear up a lot of misgivings about a foreign key, so thank you very much!…
-
6
votes2
answers91876
viewsQ: How to add a Foreign key to an already created table
I’m a beginner in mysql and can’t add a fk to a table I created. I have two tables (person, object) and I want to create a 'fk_person' in object that receives the value of the 'id' attribute of…