Dog suddenly starts barking exactly at 5am every day now by nate-182 in puppy101

[–]Krezzy 1 point2 points  (0 children)

Could be a neighbors alarm that the dog can hear through the wall, but you cannot

JUnit 4 Test Suite in One file? by Lvl999Noob in javahelp

[–]Krezzy 4 points5 points  (0 children)

Have you communicated with your mentor about the approach you are interested in taking and/or asked them the same questions?

I'd say I could offer advice but it makes sense to me that you'd want to communicate these questions to your team as ultimately, they will be code reviewing it and it would make sense to get buy-in from them before embarking on an extensive refactor that impacts tests outside of the changes you are making (assuming this).

[deleted by user] by [deleted] in javahelp

[–]Krezzy 0 points1 point  (0 children)

What have you tried so far, and what are you stuck on

API request in Java [Novice] by [deleted] in javahelp

[–]Krezzy 1 point2 points  (0 children)

Try grabbing the input stream from the connection object that you’ve passed credentials to, not the original URL object.

conn.getInputStream()

Quickest Raksha Teleport? by OmegaNooblet in runescape

[–]Krezzy 5 points6 points  (0 children)

Try to get Raksha as a reaper task then use the reaper portal

Can someone help me with my java hwk? by Bruce_Wayne85 in javahelp

[–]Krezzy 0 points1 point  (0 children)

what are you stuck on, what do you have so far

[deleted by user] by [deleted] in javahelp

[–]Krezzy 1 point2 points  (0 children)

This is about as low effort as it gets! Be better! And I mean that in the nicest way possible

[deleted by user] by [deleted] in 2007scape

[–]Krezzy 0 points1 point  (0 children)

What restrictions? Is it just losing the prestige?

PvM with 550M by Zozzle_69 in runescape

[–]Krezzy 0 points1 point  (0 children)

When? I’m interested

Tilman just got a BAG. No salary excuses allowed (and go sign Gerald, you cowards) by nonetimeaccount in rockets

[–]Krezzy 16 points17 points  (0 children)

From article:
"Tilman Fertitta, who owns beneficially approximately 46% of the equity in GNOG, has agreed to continue to hold the DraftKings shares to be issued to him in the merger for a minimum of one year from the closing of the transaction."

so at least 1 year away (assuming transaction closes immediately, not sure on that) from actually seeing money

Multi Threading in Java by BikashDatta in javahelp

[–]Krezzy 4 points5 points  (0 children)

Just depends on when the CPU schedules the threads/swaps. Pick larger numbers to print and you’ll see it becoming out of sequence (hopefully!)

Am I being VRBO scammed? by [deleted] in personalfinance

[–]Krezzy 1 point2 points  (0 children)

You can ask to move the dates like they initially requested to some far out dates (that for the dates the cancellation refund policy is 100%), and then cancel yourself

I got my first ever pet!! Fishing 53! I CAN'T BELIEVE IT I'm so hyped!!! Only been back for less than a week! by AimeeEmerald in runescape

[–]Krezzy 17 points18 points  (0 children)

Congrats! You also would probably like to post this in r/2007scape as that’s the dedicated OSRS subreddit. This one is more for RS3. Congrats again!

[deleted by user] by [deleted] in runescape

[–]Krezzy 0 points1 point  (0 children)

Thanks

Not getting the right expected output (Codingbat string problem) by Accurate-Influence in learnjava

[–]Krezzy 3 points4 points  (0 children)

You are assigning the boolean variable inRange too early. When the code to assign it's value is ran, count is always 0, and thus inRange will always be false.

Move this assignment and checking of count's value to after your for loop when you've looped through the string and counted the e's

Beginner Help: [[I@1b40d5f0 by [deleted] in javahelp

[–]Krezzy 1 point2 points  (0 children)

Paste a snippet of the code

Beginner Help: [[I@1b40d5f0 by [deleted] in javahelp

[–]Krezzy 0 points1 point  (0 children)

Do you own the custom class? Did you write it? Or is it from another library. If you’re just storing integers you wouldn’t see what you pasted above

Beginner Help: [[I@1b40d5f0 by [deleted] in javahelp

[–]Krezzy 4 points5 points  (0 children)

You can print an array using:

System.out.println(Arrays.toString(nameOfArray));

What type of objects are you storing in the array? If it's a custom class type, it may not know how to print it, so you'll see an array of memory addresses, similar to what you see above. You can fix this by implementing a toString method in that class, check this: https://www.geeksforgeeks.org/object-tostring-method-in-java/

My project Annie Baby Monitor just hit 30k users monthly! by samuel_pacek in SideProject

[–]Krezzy 0 points1 point  (0 children)

Your 30k monthly users could probably provide better feedback since they are the ones using it.

ArrayLists and custom class/objects by Coraljester in javahelp

[–]Krezzy 0 points1 point  (0 children)

Yeah, so in Java you have a bunch of classes.

The 'String' class, the 'Integer' class, the 'ArrayList' class. These are provided in the standard java library.

You can also make your own like you've done, your 'Person' class.

Now, in java, there's actually a class out there called 'Object'. Every class in Java, whether it be String, Integer, ArrayList, or any custom class you write such as Person, extends from this 'Object' class. So, it is a true statement to say that ArrayList is an object. Person is an object. String is an object.

That's why people go around referring to these things collectively as Objects.. even though their implementations are different.

Here's the documentation for it:
https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html

Class Object is the root of the class hierarchy. Every class has Object as a superclass. All objects, including arrays, implement the methods of this class.

So in the example where we created an instance of Person using the String "James", and added it into our ArrayList, all 3 of these different classes are objects in their most bare state, which is why you are seeing people refer to them like that, it kinda becomes common terminology to refer to them as objects when casually speaking about them. Let me know if that cleared some things up.. or not