« first day (4477 days earlier)      last day (482 days later) » 

12:00 AM
Always draw your curves, then plot your reading. (source)
 
12:21 AM
@SergeyZolotarev because String.equals(o) is false if o isn't a string
in this case, o is a StringBuilder, but that's irrelevant. It isn't a string
/javadoc StringBuilder#equals
 
And StringBuilder has not overridden equals to do string comparisons, so the inverse (sb.equals(string)) is still false
You can string.equals(sb.toString()) instead
 
 
12 hours later…
12:23 PM
uses java.io.File
 
12:46 PM
posted on January 25, 2023

archive - contact - sexy exciting merchandise - search - about ← previousJanuary 25th, 2023nextJanuary 25th, 2023: This too is a SPA COMIC. I love to go to a place where nobody talks and you can be hot-wet and then cold-wet and then relaxed-dry in cycles. I am a simple man with simple tastes.– Ryan

 
1:40 PM
The Array class doesn't have any fields, and yet all arrays in Java have, at least, length fields. How come?
 
 
2 hours later…
3:21 PM
If a child class inherits a non-final non-static field from a parent class, can it redeclare it final and initialize?
 
 
3 hours later…
6:32 PM
I have come across a strange issue: I have a web application that runs on a Tomcat and makes a web service call using Axis for some tasks. As part of the configuration, a JKS file is provided for the trustStore parameter. After an upgrade to Axis, it can no longer find the certificate and refuses to work. However, running the same code in a standalone Java app has no issues. Any guesses what could be the issue here?
 
7:15 PM
I can't run a java file because a totally unrelated Java file in the same package has unresolved issues. How can I make my IDE ignore it and run what I told it to run (which is compilable)?
I mean other than pressing Ctrl+A, Ctrl+/ in the problematic java file
 
7:43 PM
I shouldn't declare inherited fields in child classes. should I? I don't get this message, "Identifier expected" 🤔
 
8:04 PM
 
8:50 PM
:55885023 I know, but I am supposed to create constructors one specified way, I don't have leeway in that respect. Can or can't I initialize inherited fields?
 
@SergeyZolotarev Clue: You can reassign that parameter from within a method in the child class.
I misread your code
 
@Michael Can I initialize inherited fields? I tried to google it
 
Not in the way youre doing it
Think about how would you set the value of a variable in a method
 
@Michael in what way CAN I do it?
 
In a method body
The code is in the wrong location
 
8:59 PM
@Michael Basically, you suggest using a setter, don't you? It feels a bit weird doing so for a field that belongs to that class (through inheritance or not, what does it matter)
 
If only child classes could invoke the parent class's constructors...
 
@Michael look, I get what you mean, but I just can't do it. They say in the task: "create a constructor for this class this way, for that class that way". I have to include additional parameters to pull off what you are getting at
 
 
2 hours later…
11:00 PM
So to recap, you CAN'T initialize inherited fields UNLESS you do it in a child class constructor method, is that correct?
 

« first day (4477 days earlier)      last day (482 days later) »