0
What does () actully mean or do? Im thinking it means "this" for example: While(this);??
4 Antworten
+ 3
Firstly 'while' takes a boolean value, if the parameter is true then it will execute statements within the loop. For infinite loop to run,
while(true)
statement;
Secondly, 'this' is keyword in object oriented programming that is used to reference to current object whose method is invoked.
Parentheses or () are used for two purposes:
(1) to control the order of operations in an expression, and
(2) to supply parameters to a constructor or method.
Let me know if this helps. If it doesn't, can you please give exact code details?
+ 1
Grouping and containing expressions and parameters. Parentheses have multiple functions relating to functions and structures. They are used to contain a list of parameters passed to functions and control structures and they are used to group expressions to control the order of execution. Some functions have no parameters and in this case, the space between parentheses is blank.
int a; a = (4 + 3) * 2; // Grouping expressions
if (a > 10) { // Containing expressions
line(a, 0, a, 100); // Containing a list of parameters }
0
expresions,parameters,parentheses,functions,control structures,
is it bad that i dont know what these are :/ can you explain these in easy way im new lol
0
im just trying to find out if theres an easy way to know what im doing inside these braces () i dont what to know what "this" keyword means.
for example
while (do?,This?,These?)
sorry if im making it hard to understand i dont know gow else to write it lol