« first day (2020 days earlier)      last day (2923 days later) » 

1:25 AM
Hello World
 
 
2 hours later…
3:21 AM
good morning!
 
morning
 
 
3 hours later…
5:53 AM
/search main exceptions handler for all exceptions over the application
 
 
1 hour later…
6:54 AM
morn
 
Hello. I'm absolutely stuck trying to understand the output of nested loops. The simple draw a box etc. I understand the syntax of individual loops but not how they interact with one another. I can see why for(i=o;i<10;i++); Soutln("*") prints 10 *, but not how to work out what effect an inside loop would make.

Can anyone point me to a nooblet-friendly resource?

Thanks
 
@Jdoh, not clear enough. if you can share your code somewhere else and give a link, may be i can help.
Although if you are looking to iterate something in the for loop, this may give you an idea:
for(i=0;i<10;i++){
System.out.println("first loop: "+i);
for(j=0;j<5;j++){
System.out.println("second loop in first loop: "+j);
}
}
 
7:15 AM
@Jdoh they don't interact. The outer loop doesn't care about inner loops it just repeats the code inside it's body and executes that (even if it's another loop). And the inner loop doesn't care (doesn't even know) about an outer loop. It just repeats it's body.
 
Thanks both. I'll try to be clearer. I guess interacting isn't the right word. I can't see (without compiling and running) that this would make a pyramid. The second loop must be having an effect (I said interacting) otherwise the first loop would just print ******
I just can't see / understand how the two loops work together to make a triangle. Every resource I've found seems to be aimed at a higher level than I understand.

for (int i=0; i<6; i++)
{
for (int j=0; j<i; j++)
{
System.out.print("*");
 
Just play human runtime...
 
What's that?
 
first line sets i to 0 and starts the loop
third line sets j to 0 and starts a loop, checks if j is smaller than i (which is 0), which it's not, so it exits the loop
line 7 is the one after the loop. It prints a linebreak and jumps back up to the start of the loop (line 1)
line one increments i to one and checks if it's less than 6, which is true, so it calls the body of the loop
line 3 sets j to 0, checks if it's smaller than i (which is 1) and startd the loop
line 5 prints a '*'
back to the top of the inner loop, line 3 incremets j to 1, checks if it's smaller than i, which is false, end of loop
line 7 prints a linebreak
back to the top of the outer loop, line one increments i to 2, checks if it's smaller than 6, which is true and calls the loop body
and so on
 
Thank you.
 
7:31 AM
yw
 
I'm going to do 'human runtime' for a few different loops and see if I get the correct output
finger's crossed but you made that a lot clearer than anything I've read so far.
 
glad I could help
 
My flights boarding so got to go but I've got my laptop for lots of practice! Thanks again @Nicktar
 
for the first few times, just do it on paper or type it...
safe trip
 
7:44 AM
morn
 
morn Tavo
 
hey
o/
 
 
1 hour later…
8:58 AM
anyone worked with Retrofit2?
 
9:41 AM
public class MyResponse {
@SerializedName("success")
@Expose
private Boolean success;

@SerializedName("resource")
@Expose
private User[] resource;

//getters, setters and constructor
}
here i use User model to generate resource. if i want to use another model, say WebSite, then cant i do it with this same MyResponse? i just want to know how i make that priate SomeModel[] resource supports all models
is this somethign about Context?
 
10:19 AM
How about having an abstract class with all common attributes and create array of abstract class instead of actual object?
 
@java8.being if do so, i have 4 models: user, category, post and comment. if i create an abstract class with common attributes, still i need sub classes for each model isn't? then still i can't have a common response class.
I read about casting. it is hard. so before going to that, is it possible to use something like this?
private Array[] changeableModelType;
public MyResponse(Boolean success, Array[] cMT){
this.success = success;
this.changeableModelType = cMT;
}
then in somewhere, i can cast it as i want? like: MyResponse response = new Response(true, NewModel[]);
NewModel[] arrayOfObjectInNewModel = response.getChangeableModelType();
is this possible?
i guess safe to do? @java8.being
 
10:57 AM
Something like this?

        Object[] array      = new Object[5];
        Child[]  childArray = (Child[]) array;
 
Looks ok, let me build the project again. will let you know if it success
 
11:13 AM
java.lang.ClassCastException: java.lang.Object[] cannot be cast to Category[]
hmm, looks like i have to manually create an array i need
 
@JanakaRRajapaksha I asked, didn't tell to do this way :D
 
hehe but it gives me an idea. Now i can have a common response class and use it for every response. then i will manually put objects into required model array instead of casting :)
 
does tomcat 1.5 support java 1.9
 
@TGMCians How can it do that?
 
fge
@TGMCians probably not the jigsaw builds, no
Otherwise, yes, it should
But then Java 9 will have jigsaw
 
11:31 AM
morn
 
12:02 PM
       hey
ho
       :o
               wooooww
   didnt know  about that
 
12:17 PM
Hi
I was trying to let run the Jprogressbar, could someone help, perhaps ?
 
Morning, Java!
 
Hello Michael
 
12:33 PM
Hey there, @Gia.
 
Michael you know about JProgressbar ?
 
Morning!
And by morning I mean tzt because I'm nocturnal.
 
haha
 
@fge Hey man I finally found a solution.
 
12:54 PM
@wonderb0lt xD dont get me wrong
i was wondering that the text gets formated if you move it further in
i didnt know about that ;)
looks like some maniac writing i can see now xD
 
PomeGranate
hey jungs
how to get the value from a file input field with selenium?
SELENIUM!
 
SEEEELEEEENIUUUUM!!!!
 
silver.
 
SILENCIUUM!
 
yes yes SELENIUUUUM!
how to get the value of an input file field???
 
1:07 PM
mornin' peepels
 
hey @ballBreaker
 
yo all
 
eyo dudes! @Wonder and @tavo
how's everything going?
 
not bad. Just a slow week
you?
 
Ahh not bad, but a really busy week
My boss gave me an impossible deadline, and knows it's impossible
But also knows I won't give a shit unless he gives me the deadline
So he has a huge smirk on his face everytime he mentions it
 
1:14 PM
you really need to start self-organising
:P
 
What do you mean?
I'm extremely organized
I mean motivation != organization
If that's what you mean, I'm not that motivated right now - but I'm always organized lool
I almost require a fire lit under my ass to do anything
(if it's something I don't want to do that is)
 
or one of those centipede @ballBreaker
;)
 
1:32 PM
O;
 
maybe even a centipede boss
 
eek
lol
 
0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0
here he is
 
meep
 
watching you
 
1:37 PM
kill it with fire!
 
                                        0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0
hes running away see
 
               (  .      )
           )           (              )
                 .  '   .   '  .  '  .
        (    , )       (.   )  (   ',    )
         .' ) ( . )    ,  ( ,     )   ( .
      ). , ( .   (  ) ( , ')  .' (  ,    )
     (_,) . ), ) _) _,')  (, ) '. )  ,. (' )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^bad ascii fire
 
@ballBreaker eh
 
0;;;;;;;;;;;;;;;;;;;;;;;;(.)^^^^^^^;;;;;;;;0
 
@ballBreaker SO chat supports images, you know.
 
1:39 PM
               .-""-._
              / ___/  \         _&_
        _.--""|/    `\|        // \\
      .'      ( ^/ ^  )'.     / / \ \
     /         | _   |   \   // / \ \\
     |        _\____/    |  /_/_/_\_\_\
     |      .' \____/-._ |     .-"-.
     |     /            `;    /#    \
     |    /  /     _|_.---\   |     |
     |.-.;   :--.-(_/.____/.-""\___/"-.
     /    \ / ~~/   /\   \{"=.______.="}
    /--. ; /___/_~~/ ; .--\"=...__...="}
   /    \-/  `\______|/    \-.______..-;
   |    /`|   |       \    |   ||||   ||
 
ASCII art is so 1990.
 
but it's fun
 
we are just dealing with this big ass centipede
noone took care of him
 
/me thinking of reinstalling OS/X on my Mac, but doesn't trust TimeMachine to restore my data.
 
okay fine @Michael here you go
@Hans
 
1:41 PM
@ballBreaker lol
 
lol
 
1:59 PM
@fge Aaw I finally came around to do the BreadthFirst thing and you already did it ._.
oh well
 
I guess you'll just need to do the BreastFirst thing
 
2:59 PM
Off to lunch, bye Java!
 
 
2 hours later…
4:50 PM
@ballBreaker
 
fge
@wonderb0lt it's not like streems lacked stuff to do
 
5:20 PM
http://www.commitstrip.com/en/2016/05/04/not-everyone-is-made-for-front-end-design/
CommitStrip
Not everyone is made for Front End Design
CommitStrip
1462382243
 

« first day (2020 days earlier)      last day (2923 days later) »