0

What does ":" stand for?

I would really want to know what to do with it

20th Feb 2017, 6:56 AM
Sebastian Rumpel
Sebastian Rumpel - avatar
5 Réponses
+ 2
your example won't compile, maybe System.out.println(a + ":" + b); In this statement ":" is just a text literal.
20th Feb 2017, 8:35 AM
Tamás Barta
Tamás Barta - avatar
+ 1
I don't really understand the qurstion.
20th Feb 2017, 6:58 AM
Ladislav Milunović
Ladislav Milunović - avatar
0
Example: System.out.println(a":"b);
20th Feb 2017, 6:59 AM
Sebastian Rumpel
Sebastian Rumpel - avatar
0
It is just printing a string. You can print any unicode character like that. So, if you want to show that is division you lri t something like that. It is not operator.
20th Feb 2017, 8:24 AM
Ladislav Milunović
Ladislav Milunović - avatar
0
Thanks everyone for helping me!
20th Feb 2017, 8:45 AM
Sebastian Rumpel
Sebastian Rumpel - avatar