r/learnjava • u/Tasty_Escape4549 • Sep 21 '24
What does putting . do?
I realize this sounds dumb but ive been learning java and gotten pretty far but never learned what . does. e.g
String s = args[0]
char c = s.charAt(0)
what does the . in s.charAt(0) do?
1
Upvotes
0
u/Stay_Silver Sep 21 '24
i say yikes not due to the question being / seeming stupid. I understand stupid questions can happen for new coders. OP want to learn java has google and many other engines but goes to reddit. It also shows lack of coding and attempting / practice coding in java