0
what kind of data type are these +/-/*
I wanna use +, *, - as data type like this d = +; but what kind of data type is this? should I use string or what?
4 Respuestas
+ 7
maybe this will help?
especially the calculator example at the bottom
https://hashnode.com/post/anonymous-functions-in-java-explained-cj1opkbj8000sml53bsq6r6cj
+ 4
You can't store operators in variables. Your best bet is to store the symbols as character or string, and then interpret them correspondingly.
0
just announce them as strings
0
They're not data types, they are operators. + is addition, and so on.