Quantcast
Channel: User Federico klez Culloca - Stack Overflow
Browsing all 499 articles
Browse latest View live
↧

Comment by Federico klez Culloca on Java static members of abstract classes

Encapsulate the capacity in a method getCapacity. That method can look for a TRAM_CAPACITY or BUS_CAPACITY static variable depending on which class is implementing it. This way you don't need to care...

View Article


Comment by Federico klez Culloca on Hi, I am having a hard time trying to...

Hello and welcome. Please don't use coments to add to your question. You should [edit] it instead.

View Article


Comment by Federico klez Culloca on I was working on a problem and did not...

Why do you think your solution is significantly more complex? Looks to me like they're more or less equivalent. The difference is more or less the same as comparing if (a < 0) vs if (!(a >= 0))

View Article

Comment by Federico klez Culloca on Pinescript position menu

I'm not familiar with pinescript, but are you sure position should be a string and not simply position := position.middle_right? That would also imply you shouldn't probably call your variable...

View Article

Comment by Federico klez Culloca on content is null error after crash on...

Unrelated, but catch (Exception e) how can returning a string throw any (recoverable) exception?

View Article


Comment by Federico klez Culloca on Delete query returning "could not extract...

@Stultuske that's how you pass ordered parameters to PostgreSQL prepared statements. See here

View Article

Comment by Federico klez Culloca on Java records does not have default builder

I suppose you're asking why they don't implement the builder pattern by default.

View Article

Comment by Federico klez Culloca on Find if the current date is the first day...

findFirst returns an Optional. Looks like you just need to check whether there's anything in that Optional.

View Article


Comment by Federico klez Culloca on NullPointerException when searching in my...

You should run your service in a debugger and check what exactly is null and in what circumstances.

View Article


Comment by Federico klez Culloca on Time complexity of this code which...

@Lundin in the real world we don't usually write sorting algorhithms either, but we still study them because the value is in learning to reason about stuff, not necessarily in the real world...

View Article

Comment by Federico klez Culloca on How do you pass an ArrayList, created in...

var classRoster = createRoster(); in main should do the trick.

View Article

Comment by Federico klez Culloca on How to change Intelli-J theme back to...

I removed unrelated tags and made the title more appropriate.

View Article

Comment by Federico klez Culloca on Return type of a method in java and why...

@user22873067 because every Book is an Object, but not every Object is a Book.

View Article


Comment by Federico klez Culloca on The true return type of method in java

@user22873067 because every Book is an Object, but not every Object is a Book.

View Article

Comment by Federico klez Culloca on NullPointerException when searching in my...

You should run your service in a debugger and check what exactly is null and in what circumstances.

View Article


Comment by Federico klez Culloca on Time complexity of this code which...

@Lundin in the real world we don't usually write sorting algorhithms either, but we still study them because the value is in learning to reason about stuff, not necessarily in the real world...

View Article

Comment by Federico klez Culloca on Return type of a method in java and why...

@user22873067 because every Book is an Object, but not every Object is a Book.

View Article


Comment by Federico klez Culloca on auth cannot be resolved to a variable

@MisuriWijewardhana just to understand, you have both those pieces of code (the one that outputs the html and the one that sets the attrbutes etc.) in that specific order? Because if that's the case...

View Article

Comment by Federico klez Culloca on Not abale to push code using command line...

Removed irrelevant tags

View Article

Comment by Federico klez Culloca on Is there a way initialize a matrix(2D...

Mabye I'm just still half asleep, but doesn't this perform the same number of operations (actually, more operations) than a simple (and easier to read) nested loop?

View Article
Browsing all 499 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>