| Off Topic > Off Topic |
| Programming Megathread |
| << < (38/241) > >> |
| Flame:
--- Quote from: otto-san on December 13, 2015, 06:26:49 PM ---i've never really worked extensively with java, but will that code not throw an error because you're trying to concatenate an int with a string? or is that just implied in java? --- End quote --- no, i'm pretty sure it just works. if you do get an error, then System.out.println("" + x + " is also " + y); would definitely work. |
| Foxscotch:
--- Quote from: Flame on December 13, 2015, 06:24:14 PM ---java string literals are surrounded in ", not '. character literals are surrounded with ', but otherwise yeah this is right --- End quote --- oops, right. that's something I forget a lot, cus I think single quotes are way more attractive, so I use them in python almost exclusively --- Quote from: otto-san on December 13, 2015, 06:26:49 PM ---i've never really worked extensively with java, but will that code not throw an error because you're trying to concatenate an int with a string? or is that just implied in java? --- End quote --- I do know that works though. which actually feels kinda backwards, because it doesn't work in python |
| Zloff:
just got 10 keys for this old inferior language at work... one of the many languages we code in lol simple af --- Code: ---? "Hello world" --- End code --- |
| Awesomebread²:
https://www.youtube.com/watch?v=IYLm8uclr0I |
| Foxscotch:
--- Quote from: Zloff on December 13, 2015, 06:43:22 PM ---keys language --- End quote --- that's disgusting |
| Navigation |
| Message Index |
| Next page |
| Previous page |