« first day (2552 days earlier)      last day (2396 days later) » 
02:00 - 09:0009:00 - 00:00

2:30 AM
morning
i remember reading something about why random testing is easy to automate
but i forget the source
 
 
1 hour later…
3:36 AM
Ha ha @AceVez
 
4:00 AM
"Winning is not everything, but the effort to win is." -Zig Ziglar (source)
 
4:16 AM
Anybody have idea on how to pass the multiple key and multiple values into textbox using swing java
Like setText(key); this i tried not working
String value of (key) this too tried still not working
Any idea or link if helpls plz share
 
4:30 AM
expectorates
 
Why is this expected @OakBot
 
@vidya Type /help to see all my commands.
 
 
2 hours later…
Zoe
6:17 AM
morning
 
morning zoe cannot find other chatgroup mates
 
G'day =-=
 
@vidya I do not understand the problem.
A TextField can have only one value
@geisterfurz007 G'day!
 
Zoe
@ItachiUchiha g'mornin
 
Morning
 
6:31 AM
hi
 
Zoe
hi
 
wutz goin on?
 
sleeping listening to math lecture
 
Zoe
lol geis
 
College?
 
Zoe
6:34 AM
Sitting and waiting for this lecture to be over because I can't do what I'm supposed to do today anyways
@geisterfurz007 Math is fun though :>
 
I'm a student for software engineering. I'm not going for awhile after this class though. Just more demanding than it is supposed to be.
 
Zoe
Still another 3 years before I can start computer science :/ 40% of the time I spend right now is trying to pay attention and not falling asleep xD
 
Yeah college
 
I didn't do computer science
my bachelor's was in education
 
@Zoe will increase in college :)
 
Zoe
6:36 AM
@geisterfurz007 university*
There's nothing in this country called a college
 
my graduate program is software engineering. The courses are just too hard and too much work, and it's only supposed to be a 3 credit hour course
I am learning more studying programming myself
 
@Zoe boohoo
:D
 
Zoe
just correcting you when you call out something that doesn't exist xD
software engineering is a part of computer science in norway I think
 
I'm going to try and get a junior java developer job first before going back to graduate school
I'm not going to pay 2500 per class just do to homework on everything I learned on my own that they didn't teach me
 
Zoe
2500 what?
 
6:38 AM
dollars
 
Zoe
wow
 
This is America, the country that makes the most sense. I have to spell it out
 
Zoe
That is a lot
 
Zoe
I can take 5 years studying computer science for free
 
6:39 AM
I am trying to get the degree at least
but after this course it's over
 
Zoe
(the school is free, living is not)
 
for now
 
Zoe
 
I am still not even sure what software engineering actually means
The next class of the curriculum is supposed to be Principles of Software Engineering
 
Zoe
Software engineering (SE) is the application of engineering to the development of software in a systematic method. == Known definitions == Typical formal definitions of software engineering include: "Research, design, develop, and test operating systems-level software, compilers, and network distribution software for medical, industrial, military, communications, aerospace, business, scientific, and general computing applications"—Bureau of Labor Statistics "the systematic application of scientific and technological knowledge, methods, and experience to the design, implementation, testing, and...
When in doubt, wikipedia will help you xD
 
6:41 AM
yea, jibber jabber jargon
so, what's that mean in English?
 
Zoe
Basically, you write code
 
and you don't write code as a developer as opposed to an engineer?
 
Zoe
The "known definitions" part is actually a good description
    "Research, design, develop, and test operating systems-level software, compilers, and network distribution software for medical, industrial, military, communications, aerospace, business, scientific, and general computing applications"—Bureau of Labor Statistics[citation needed]
"the systematic application of scientific and technological knowledge, methods, and experience to the design, implementation, testing, and documentation of software"—The Bureau of Labor Statistics—IEEE Systems and software engineering - Vocabulary[4]
 
@Nathan777 some people call it developer, some call it software engineer ^^
Good day Kaushik :)
 
Other websites told me that they don't mean the same thing
 
6:45 AM
Oh indeed. Software Engineer seems to be broader...
 
@ItachiUchiha you are correct one text field can hold one value but text area can hold many values right.
 
Zoe
Basically, software engineering is the developer skill that allows you do to stuff like develop programming languages and operating systems. Everything as programming in common, but it is in which direction the programming is toward that it changes type. Towards machine learning that's AI, app/gamedev is something different again, library development, framework development, etc
 
I want to post the multiple key and multiple values into text area in the swing application with the help of java
 
Who was asking about the boolean equals method?
 
6:46 AM
@vidya OK, that should be easy
 
I'm trying to study that right now myself
 
Really
I tried this way setText(entry.getKey())
 
I'm supposed to be writing a discussion post on the equals shit.
 
Zoe
You have to add all the values and keys, convert them into a single string and add them all to a final String you put into the text area @vidya
 
When implementing an equals method, should it compare all fields of the objects, or just a select few fields? Provide a rationale to support your conclusion. Be sure to include examples.
is my assignment
If only I knew what the question was actually asking
 
Zoe
6:49 AM
really easy to answer. You write that you compare all because otherwise the objects aren't equal
 
yeah, but how do I make a long discussion out of that?
 
Zoe
There is an equals method as geis made oakbot post as javadoc
When you override that you have to manually create it yourself
 
How to add all keys and values in one string @Zoe any ref link ppz
 
So, what happens if you write just a few select fields?
 
Zoe
Nothing else than if you take all
 
6:50 AM
@vidya Don't more or less randomly ping people. Those who want to help you will do so :)
 
@vidya That won't work
 
Zoe
But the objects can't (IMO) be considered equal if they have a few fields with a different value
 
That should somehow work I think
 
Zoe
That should work, yeah
 
@geisterfurz007 okay sure yeah sorry for that
 
Zoe
6:50 AM
Haven't used TextArea in a while, forgot about the append method
 
Some of my assignments I had to just look up the answer online because it is moving too fast without giving us time to actually study and practice
 
Ok np @Zoe
 
Zoe
@Nathan777 yeah, got the same problem in maths (the pace is extreme right now). You just have to spend whatever time you got to write the answer as quickly as you can. There's no one answer on this because it depends on the class
 
final String collect = map.entrySet().stream().map(entry -> entry.getKey() + ":" + entry.getValue()).collect(Collectors.joining("\n"));
@vidya Try this ^
 
I need something such as a journal or website to cite on how to answer this question. I'm thinking of how to type this in Google that will give me examples of select fields and everything. It seems like such a stupid question to me.
 
6:53 AM
Perfect for a beginner @ItachiUchiha :D
 
what math are you taking?
 
Thanks @ItachiUchiha
 
But nice one, I must say!
 
Zoe
138
Q: Overriding the java equals() method quirk

Josh SmeatonI ran into an interesting (and very frustrating) issue with the equals() method today which caused what I thought to be a well tested class to crash and cause a bug that took me a very long time to track down. Just for completeness, I wasn't using an IDE or debugger - just good old fashioned te...

 
I wish I could just afford to go to developer boot camp or something
 
Zoe
6:54 AM
617
Q: What issues should be considered when overriding equals and hashCode in Java?

Matt SheppardWhat issues / pitfalls must be considered when overriding equals and hashCode?

@Nathan777 1T
 
@Nathan777 Stackoverflow is free ;)
 
Zoe
^
Youtube too xD
 
this place kind of sucks at times to be honest, lol
 
I am doing one small application for my old team they are working hard for taking values from Redis db.so I felt bad and doing for them.@geisterfurz007 sorry to disturb
 
it's good for some things, but when you have a question you cannot ask without people being complete dicks here and down voting everything you ask
 
6:55 AM
No reason to be sorry for anything ^^
 
:)
 
The next time I have a question that ends up getting down voted, I won't be able to chat again until I get another up thumb
 
Zoe
@Nathan777 You have to research before you ask (avoid dupes) add enough code for it to be reproducible and you're good to go in basically all cases
 
my reputation is at 20 on the dot
I have a hard time with these discussion questions for school. I just don't get what it is asking me.
 
casually downvotes a question of @Nathan777 :P
 
6:57 AM
When implementing an equals method, should it compare all fields of the objects, or just a select few fields? Provide a rationale to support your conclusion. Be sure to include examples.

What the bleep does that mean? Of course you should compare all fields!
casually punches u in face
 
Zoe
^
Just be the devils advocate and argue for only a couple of fields (because that doesn't make any sense when you then argue for all the fields it'll crush the arguments and you'll "win")
 
what do they mean by fields/
 
Zoe
In the class, there are fields (variables, constants)
Those are compared
 
oh
 
@Nathan777 variables which are not static
 
6:59 AM
So, why would you need to compare every field in the class then? All you are comparing if one thing is equal to another.
 
How do you know if two cans of soda are equal?
You start comparing the size for example
And the brand, and the contents.
 
Meaning you have to compare multiple things that make up those cans of soda to make sure they are equal
 
Zoe
Yup
 
Does that mean everything?
 
7:01 AM
If it makes sense to do so, yes
 
What if a variable in that class isn't relevant to the comparison?
 
Zoe
Everything that's changable
 
@Nathan777 Then ignore it :D
 
Zoe
If a variable is final and static, there's no point in comparing it. If it is final and changed at runtime, it should be compared. IF it is static, ignore it (static is the same across all instances)
 
To be fair tho... I cannot think of any example where a field might be irrelevant :D
@Zoe static ones are not fields tho
 
7:03 AM
Is this just about numbers?
comparing 2 numbers?
 
not necessarily
 
Zoe
@geisterfurz007 they are fields, just not variables
 
you can't really compare if apple is equal to orange
or if cat is equal to dog
 
Zoe
You can also compare instances, booleans, strings, bytes, floats, doubles, arrays, maps or whatever else you got in the class
 
or if my life sucks is equal to my life is a friggen joke!
 
7:05 AM
Oh someone sounds desperate :/
 
Zoe
If it is a different class, you just return false. If it is the same class, you check for the corresponding fields
 
The first thing you could compare is the type. With
if (!(objectToCompare instanceof Orange)) return false;
You can check for the type of the object to compare.
Another common check is if the object to compare is null or not.
 
Zoe
checking if it is a different class or not can be done using instanceof
 
@Zoe final can be fields and not variables. But static are not fields because they are not on the layer of objects, or not?
 
Still learning all this jargon. Instance of, etc.
 
7:07 AM
Yes I am missing something :D static does not matter xD @Zoe Sorry
 
Zoe
lol
 
is instanceof a boolean?
 
Zoe
@geisterfurz007 I assumed static fields (did it again xD) are fields too because they are declared in the same way just with an extra keyword (it's like saying private int isn't the same as public int because they have a different access modifier). No clue if it isn't on the layer of objects or not, no clue what that even is
 
It is a comparison operator like == @Nathan777
 
Zoe
Exception for String though
 
7:09 AM
does sugar instanceof Cake.... mean a boolean for whether or not sugar belongs to the Cake class?
 
== is a compare operator for Strings as well :P
 
I'm not getting it
 
Zoe
@geisterfurz007 It's a bad comparison (literally xD) though :>
 
@Nathan777 Are you familiar with the idea of interfaces?
@Zoe The idea of you leaving mah room still persists xD
 
We just learned about interfaces last week, but I pretty much forgot what it means
 
Zoe
7:11 AM
@geisterfurz007 lol for whatever reason I read that as math room xD
 
@Zoe Reasons it that you are noob :>
 
interfaces, an abstract class right?
 
Zoe
no
interfaces are defined with teh keyword interface
 
In that case I assume that you will soon learn about instanceof as well :)
 
oh, okay. I get it
yes, we did study that. I just completely forgot it because it was 3 weeks ago
We go over about a month worth of programming skills in only a week, which is the reason I'm quitting after this course.
 
7:19 AM
@geisterfurz007 It's better than perfect :P
 
yes, dammit, I still don't know how to answer this stupid question. Every day I do this, I just wanna go jump off a building.
 
Oh please don't do that >.>
 
this stuff just depresses me, I can hardly ever figure it out. I just hate myself every day for it
grrrr! This is just so annoying. Every time there is an assignment asking a question, I have to do 2 days of research just to figure out what it is asking, and then hope I know how to answer it once I figure it out!
 
Ok. I am using the soda can one again. You know that every soda can contains a certain amount of soda in it. This one is ALWAYS the same! So if you compare them, there is no need for you to compare the amount of soda in it.
I will quickly throw together an example ^^
Might take a bit
 
@Nathan777 What's the question?
 
7:29 AM
When implementing an equals method, should it compare all fields of the objects, or just a select few fields? Provide a rationale to support your conclusion. Be sure to include examples.
so, you don't need to compare fields that are always the same?
 
So the question you should ask yourself here is "What does it mean for one object (don't get too hanged about the meaning of "object" in a software context, think of it like a "thing") to be equal to another object?"
If I'm called Madara, and another person is also called Madara, does that mean we're the same person?
 
it means they have the same value???
 
@Nathan777 Some properties will be the same, some will differ.
The question is what do you consider "equality" to be
 
The depends on the example I guess
 
class Person {
  boolean equals(Person another) {
    return true; // All people are equal
  }
}
:D
@Nathan777 Correct
 
7:32 AM
Like, if a fraction is 2/4, that's equal to a fraction that is 1/2
 
Two lists might be equal if all their elements are all equal, and an object representing a ratio can be considered equal to another object representing the same ratio with different numbers
But two Person objects might not be considered equal even if all their fields are exactly equal
 
how would a list not be equal to another list that is exactly the same?
 
@Nathan777 By default, objects in Java are compared by something called identity
It basically means that an object (again, by default, assuming no one implemented equals()) is only ever equal to itself
 
so does that mean 2 objects are never equal by default?
 
@Nathan777 Correct
List a = new ArrayList();
List b = a;
List c = new ArrayList();

a == b // true
a == c // false
 
7:35 AM
throws in a GZ to 100k @MadaraUchiha
 
It's not by chance that the choice of how to implement equals() is left to you, the programmer. There's no one true way
 
Zoe
Hey madara
 
It depends on the kinds of objects you compare.
hOi everyone
@geisterfurz007 Thanks :)
 
Okay, so back to the question, do all fields of an object have to be used in an Equals method?
 
:39648285 Notice the first line >.>
 
Zoe
7:37 AM
Never mind, comparison doesn't trigger an NPE
 
It will if for example brandName is null
 
NPE?
 
NullPointerException
 
oh
 
Zoe
NullPointerException
On my phone, typing considerably slower now
 
7:38 AM
oh hai there internet explorer user :>
 
So, your method is saying that if all the contents plus the brand name of the soda can are equal, then it means that those 2 are equal?
 
Zoe
Not using IE, using Chrome on my phone
Typing is slow, mobile chat doesn't show new messages automatically
 
@Nathan777 In that rough example, yes. That would not be code you would actually use but only to visualize
 
okay, so if I set int a= 1, and int b= 1... If I assert a equals b, it would be false because they have a different identity?
 
@Nathan777 Numbers are special
 
7:40 AM
int are a slightly different thing. They are so called primitive datatypes ^^'
 
Everyone is special according to Earnest Angley
oh
 
@Nathan777 That just means that no one is.
Java has the concept of "primitives": a.k.a. numbers, booleans, byte, char, etc.
And "Objects" which is everything else (including strings)
For this reason, you cannot compare two strings in Java with == and must always use .equals()
String a = "hello";
String b = "hello";

a == b; // false, wat
 
If you did
Integer a = new Integer(1); Integer b = new Integer(1); and then would use a.equals(b); //returns true
b.equals(a); //returns true
a == b //returns false
 
Zoe
^
 
but a.equals(b) wouldn't return true, because they aren't primitive.
 
7:43 AM
@Nathan777 It would
Because String has an implemented equals method.
 
Holy shit you are fast with typing O-O
 
but that isn't using String
it is using Integer
 
@Nathan777 All quotes strings are instances of the String class.
 
@Nathan777 which example are you referring to? Mine or Madaras?
 
Zoe
@geisterfurz007 it's possible to type really fast on a computer
 
7:44 AM
@Nathan777 Oh, you're talking about his example.
Well, boxing is... weird.
int a = 1 and Integer a = new Integer(1); are very different
 
@Zoe I did not even read the message there already has been the answer :D And I am on a laptop and connected to wifi :D
 
@geisterfurz007 zty.pe tell me how far you get :)
 
and I will shoot the next person who uses "Hello World" as an example for their Strings
in my practice exercises, I always change it to "Hello, [insert vulgar word here]"
 
@MadaraUchiha In a second
 
@MadaraUchiha Wave 009 :(
 
7:56 AM
@MadaraUchiha Wave 006
Those words were coming faster than TheFlash
 
Died in Wave 10
 
wave 7 :(
that word split was bad
 
Is there a way to sort LinkedHashSet by value rather than by key?
 
@Leyth Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
 
2
Q: Sorting LinkedHashMap by value

user3922757How can you sort a LinkedHashMap using the value ? Is there a way to insert entries into a LinkedHashMap so that they are inserted in order based on their value ?

 
8:04 AM
died in wave 9
 
now I died in 11 :D
 
@ge
@geisterfurz007 thank you :)
 
jiggles and wiggles
yo @ColdFire You got a powerup on Enter which will clear the words that are close to you :D
You only got three per game tho
 
@geisterfurz007 didnt see that
@geisterfurz007 yo btw
 
Me neither :D I accidentally hammered it because I was used to that from programming and I hit that thing. No clue what it did then but then I tried it later. You can see it as yellow symbol in the bottom right as well :)
 
Zoe
8:28 AM
@geisterfurz007 lol
 
@Nathan777 no need
Hello World! testing is one of the most important ones
one day, you will understand the necessity of it
 
My best so far is wave 18 :)
cc @geisterfurz007 @ItachiUchiha @TheLittleNaruto
 
Alrighty. I completed my discussion post for the week
and I'm drunk
 
@MadaraUchiha This sentence is false!
 
@MadaraUchiha i need to bookmark this one in some way that I can get the link on another computer
i feel like starring it, but meh
 
8:36 AM
@Wietlol Just remember it's called "z type"
 
zty pe ?
 
@Wietlol , so why do they have to say "Hello, World"? Why not, "Hello, Dipshit!"?
 
@Nathan777 Historical reasons.
 
Calm please :)
 
8:36 AM
Someone did it first, and everyone else basically just went with it.
 
@Nathan777 that has historical reasons
like foo and bar
 
I still don't get foo or bar
I just wanna go to the bar
 
what other word would you like to use?
for example, why use Dipshit ?
@MadaraUchiha on a side note, does the Js room have an auto suspender?
 
@Wietlol No
 
like when I say something bad, I get banned for a while?
 
8:39 AM
Good noon
 
@MahmudulHaqueKhan Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
 
Good morning ^^
 
@MahmudulHaqueKhan its high morning
 
@Wietlol Only thing high here seems to be you tho :>
 
8:40 AM
high king?
 
@MadaraUchiha wow nice i got till 11 latest
also you forgot me :(
 
@Wietlol Not automatically.
 
hmm... then someone betrayed me
 
well you got flagged
 
8:42 AM
yesterday, I got "automatically" suspended
did I get automatically flagged?
 
I could automatically kick you out of the room as well :D
 
no
 
then its a manual task
or a user task
not much automatic about that
 
You posted a message that got spam/abusive flags, enough users flagged it to be automatically validated by the chat system and suspend you for 30 minutes
That's the "automatic" part
Also, I certainly hope that's not how you actually learned to program.
 
It's 3:49 AM
 
8:49 AM
@Nathan777 Not where I live.
 
I live in Texas
 
I live in Israel
It's 11:49 here
 
boo! Israel
 
And I'm here in this chatroom instead of doing work.
 
ITS 2:19 PM here
 
8:50 AM
Germany and 10:49
 
@Nathan777 That's not very nice, "boo! Israel" just spent 15 minutes explaining what object equality is about.
 
I know. Sorry. Please go easy on me for my punishment.
I've been drinking
 
I think you should take a nap :D You are drunk and it is late and you got your stuff done :D
 
I will go to bed after this beer
not really a nap though, 4am is bedtime
 
8:51 AM
smh
 
funny you can call it drunk, It's only my 2nd beer
and I feel wooooooooozy
 
@MadaraUchiha You might have used your sage power otherwise it's not possible to reach to 18 being a normal human.
 
@TheLittleNaruto That is why I wrote "This sentence is false." To see if he is a computer :D
 
smart boy
 
@TheLittleNaruto Well, my averge WPM is around 95
 
8:54 AM
next, I have to learn wtf a hashcode means
 
@MadaraUchiha Told you.. Sage power...
 
Is it anything like a hash tag?
 
@Nathan777 No.
 
Do you know the md5 hash?
 
But it's probably best you don't do that at 4am while drunk :D
 
8:55 AM
^
 
you don't have to educate me on hash codes now. I'll watch a video on it or something first after my sleepy by
 
@Nathan777 You mean "why the failure ?"
 
anyone here use Treehouse?
 
@Nathan777 I have one house without a tree.
 
@MadaraUchiha Are you from the United States or born in Israel? (If I may ask that question)
 
8:56 AM
I don't know what you mean LittleNero
 
@geisterfurz007 Israel, born and raised.
 
@MadaraUchiha Israel <3
 
I suppose yall don't know what Treehouse is
 
@MadaraUchiha How did you come to the AirForce then? Just curious
 
8:57 AM
I just wanted to know if I'm getting my money's worth
 
@Nathan777 You are correct with that assumption ^^
 
@Nathan777 exactly my point
 
@geisterfurz007 Israel has a mandatory military service of 3 years (back when I served, now it's 2 years 8 months)
I served in the Israeli airforce.
 
@MadaraUchiha Ah ok! I though you were at the US AirForce :) Thanks!
 
8:58 AM
That's why I like good ole America. No forced patriotism
 
cough
 
@Nathan777 You guys make children salute the flag every morning at school...
 
No we don't
Teachers are lying if they are saying it is required
 
@MadaraUchiha It's fine imho.
 
You ridicule people who don't stand for the national anthem at sports events...
 
8:59 AM
lol burn
 
yeah, those are idiots who do that. It's not forced though
 
02:00 - 09:0009:00 - 00:00

« first day (2552 days earlier)      last day (2396 days later) »