Piet Souris wrote:
I've never been involved as a professional programmer, albeit I used things like Basic, C and Java at home, and Excel, VBA and R in my job. So I am not hindered by any professional standard there may be, I am as free as a bird to follow any convention I like, even self-made conventions!
Piet Souris wrote:A Matrix can only be symmetric if that Matrix is square. And in that case you can avoid all those nested ifs with:
Carey Brown wrote:I don't know why Eclipse complained. I don't see anything wrong with the first code.
There is an optimization you could make where only half of the matrix needs to be tested. Loop through ALL rows but only loop through columns up to but not including the current row number.
Tim Holloway wrote:Stored procedures are something that I recommend avoiding where possible regardless of the framework you are using. Stored procedures tend to lock you into a particular database vendor plus they make it harder to determine where business data logic resides - on the DBMS server or in application code, thus raising time and cost of system maintenance. Plus it's generally harder to keep version control over stored logic than it is for application code.
The main reasons for using stored procedures would be in cases where performance was prohibitively worse when doing database logic in application code or the same logic needed to be shared between multiple applications. Both conditions are typically pretty rare.
Spring Boot really doesn't impact this. If Hibernate is being inefficient, then it's Hibernate you need to tune and that process is the same for Spring Boot as for regular Spring or even non-Spring apps.
Norm Radder wrote:
1. Prints: MyThread: run() followed by MyRunnable: start()
Do you mean this is what the output should look like:
Add @Override before the start methods to see which ones actually are overriding a class method.
Liutauras Vilda wrote:I'm not sure whether the code is copied exactly as it should, but none of the answers are inline with an existing code.
Liutauras Vilda wrote:1. You can't have two public classes in the same source file. You have MyThread and myTest.
2. Source filename should match the public class's name.
Try to fix those and see how it goes then.
guranteed constraint :
2 ≤ m ≤ 100.