« first day (1416 days earlier)      last day (3533 days later) » 
00:00 - 18:0018:00 - 00:00

6:00 PM
how do i edit my code to reflect this?
 
You have to check to make sure the numbers doing go out of range before you check locations
I'm not your teacher!
:P
 
ahh come on :/
my teacher will probably not understand the code.
 
He's your programming teacher, it should!
 
actully we got tutors who will correct this
students themselvs
 
@ItachiUchiha Watching this?
Before you do a grid with a + or a - adjustment, do a simple test to make sure the number is still within the limit. if (the number is within the limit) do what needs to be done!
 
6:06 PM
if((i-2 < 31 && i-2>0) && (j-2>0 && j-2<31){
this is what I did
 
That would work, but overkill
Can I be over 31?
 
Hi evry1
 
nop
 
If (i-2 > 0 && j-2 > 0) {} Since you are subtracting, it's implied it won't be over 31 ever…
 
because it's 8*8
 
6:09 PM
hey guys am beginner to java n I have question about GUI n Coding??
Which one should be prefered??
 
I'm assuming you are maxing it out at 32.
 
sry 63*
 
Hello World !!
 
Syso
 
You will never start with a number higher than 32, is that correct?
Hello @mlwn
 
6:12 PM
@user2736704 , if you're going to use java... you're definitely going to enjoy swing
 
yep
it's 64* not 32
wait it's a 2d array
omg my logic is failing
 
You wrote 32. Doesn't matter. If you start with a known max, and are subtracting from it, it will never be higher than the max.
 
@mlwn what to prefer using GUI components or should I go for the coding side?
 
@user2736704 you mean to ask if to use some IDE ???
 
I'd recommend experimenting with each to see what you are comfortable with.
 
6:19 PM
@user2736704 Personally, I write my java code (and everything else) using emacs... but everyone has his own preferences ...
 
@mlwn I mean that handing code is better or Graphically should I make frame etc..
 
okay
 
@user2736704 it depends what your application require ....
 
@mlwm everything that we use in java like Jframe,button etc Should I go for the handing code or I should use GUI....
@Karl It means their is no difference between GUI and writing the code by your own self
 
@user2736704 Ok.. I think now I get what you mean... many people use different IDE's to help them draw their frames/buttons ... etc... but I prefer to write the code yourself, that way, you have better control over your Controls... therefore, I use a text editor, not an IDE (ex. Eclipse)
3
 
6:25 PM
@mlwn thanks that's what I was asking...
 
Yes there is.
 
@user2736704 there are loads of online help and tutorials ... just google java swing tutorial... and you're on the right track
 
hi all
 
@mlwn I had recently given my project in the school and I worked with NetBean's IDe using GUI components I got confused when I saw tutorials on youtube. All of them were using TextEiditor. and then I thought their might be some difference between GUI and writing your own code.
hi2 @CoKoder
 
I have an arraylist that contains json like this: [{\"first\": 123, \"third\": 789},{\"first\": 457, \"third\": 679}]
What is the easy way to parse the values?
When i try to assign it to json array, i get this {"first":"123" at 0 of type java.lang.String cannot be converted to JSONObject
Any ideas?
 
6:47 PM
Hey guys!
 
Hey @Taco
 
I've developed in several languages, and my employer is having us learn Java, so they're paying for a bootcamp. Should I take an Intermediate class like this? webucator.com/java/course/intermediate-java-programming.cfm
I can learn all of the basics before then. I've compiled a hello world and setup IntelliJ using a project built with maven, so I'm not a complete noob
@CoKoder maybe it's not valid JSON. I would unescape the quotes
I can go anywhere in the world too, so I'm thinking of going somewhere sunny
 
7:33 PM
@user2736704 Actually, using a text editor is the easiest way to program... the beginning is a bit hard, but it pays in the end... and I advise you to use emacs... try to complete the tutorial at least.. you'll see how fast your code editing will be..
 
a text editor?
 
@Karl I mean compared to an IDE
 
@mlwn Is atom.io a good text editor?
 
I started with jGrasp.
 
@Unihedron I am no expert :) and nobody can tell you which one is good or bad... it's about what makes your work safe, easy and fast..
 
7:37 PM
jGrasp SMH
we need to do our prac tests with that
smh :'(
 
emacs is a fine editor, but it does not quite measure up in code completion and other niceties IDEs offer. Language like java is particularly suitable for tooling, and for some other languages where static analysis does not work as well a good editor may even be better than an IDE
 
@kiheru that's an all-time fight "text-editor" vs "IDE" :)
 
@kiheru Do you have preferences for Android editors?
 
not quite as old fashioned as emacs vs vi
 
@kiheru Believe it or not... most programmers still use vi up till now.. I just use emacs because I can do everything from within...
 
7:41 PM
@Karl I have no idea. Never done any android work. I'm used to eclipse so I'd start with the android dev tools for that. If you have no particular preference you can do a fresh start
I use vi for small, quick edits. I can't use it well at all, but it's handy for modifying a line in a config file and such
 
@kiheru I had been in situations where it was the "only" tool... and it saved my b*** .. lol :)
 
at least you didn't need to figure out ed
 
I have to go...
 
I think I have had a similar situation. Didn't have emacs installed, and managed to break something fundamental in the system. vi saved the day
 
@kiheru I can't remember well.. but vi was the "only" as I was at boot level with errors...
 
7:45 PM
iirc the rescue disks at old linux systems usually had only vi
 
@kiheru my thing is that "i hate the mouse" ... even, I use conkeror for web browsing...
but all of this is relative to each individual
 
and still manage to have the xfce mouse for avatar :-D
 
@kiheru yep.. because i develop stuff for people who like to use a mouse, and click on buttons... trust me, my personal projects don't even include any GUI
that's the only reason I installed xfce...
 
ah, just read a bit more of the context of using IDE vs editor comment. I don't use gui builders either.
Certainly the people learning swing should not use either. It does not help understanding how the system works (and once they have learned how to write the code, they don't want to use a builder either, ha!)
 
@kiheru I can't use a builder :) i feel it complicates things un-necessarily ..
 
8:05 PM
getting below error when i try to run unit test
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/me/.m2/repository/org/slf4j/slf4j-log4j12/1.5.8/slf4j-log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/me/.m2/repository/ch/qos/logback/logback-classic/1.0.6/logback-classic-1.0.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
any ideas?\
 
8:20 PM
0
Q: Class path contains multiple SLF4J bindings, log back-classic and log4j

jaminatorgetting below error when i try to run unit test in my java project: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/Users/me/.m2/repository/org/slf4j/slf4j-log4j12/1.5.8/slf4j-log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found bindin...

 
Just got intelliJ working. Where can add Spring plugins
I think I may have found it by closing out my project
 
8:48 PM
@ItachiUchiha I don't want to spam nonsense :P
 
9:14 PM
Hi
 
hi
 
 
2 hours later…
11:37 PM
Good evening, Java!
 
11:47 PM
Hello!
 
Welcome @baseman101!
 
Anyone know how to convert an overflowing integer (appears negative) and output it? And thanks for the welcome, Michael :)
 
@baseman101 Do you know about the BigInteger class?
 
Yes
 
Ah ok.
 
11:49 PM
When I do BigInteger.valueof(-690939811) it does make it into the positive value.
valueOf*
 
Try this: BigInteger.valueOf("-690939811");
Whoops, I mean: new BigInteger("-690939811");
 
Okay, I will try this :)
Nope, does not work. I think my best bet is to set the type to a long. Thanks anyway :P
 
And how is "-690939811" overflowing? The maximum value of a Java "int" is over 2 billion.
 
10528926951610461 was the number that overflowed. It changed to a negative
 
Ah. Got it.
 
11:54 PM
Long works
 
I'm back!
 
Everybody be quiet! @Karl is here!
 
:[
 
xD
 
Funny...
 
11:56 PM
I'm just joking.
 
I know...
It was funny...
 
Your use of the ellipse sheds doubt on your statements.
 
Hey guys! Another question. Is there a possible way to use bitwise operators on BigInteger? Haha
 
There is no sarcasm font! The internet needs one!
 
00:00 - 18:0018:00 - 00:00

« first day (1416 days earlier)      last day (3533 days later) »