- 2
What is a block of Code?
3 Respostas
+ 3
Line of code:
System.out.println("Hello");
Block of code (example):
if(1+1==2) {
System.out.println("You");
System.out.println(" Genius!");
}
+ 2
Adding to what HonFu said , Lines of code which are executed to complete one specific task.
+ 2
Block of codes MEANS code inside of the curlybraces
{
//your codes goes here
}