Добавить
Уведомления

The role of brackets & other concepts (e.g. the if construct) - Java Beginner (Chapters in Descript

Brackets and other beginner concepts in Java The use of different types of brackets in coding is often overlooked, yet their correct placement is probably one of the most essential skills for a beginner coder. There are three main brackets in Java 1. { } - Curly - These set the boundaries of a section of code, either a class, method, if, for loop. 2. ( ) - Round - These contain the input parameters to methods/functions. 3 [ ] - Square - These signify the use of arrays. Knowing how and where to use these, especially the { }'s, is imperative and perhaps this is overlooked by teachers (I know I've made this mistake!). Main Sections* 0:00 - Intro 0:52 - How to change font size and theme in Intellij 1:32 - The Role of the main() method in Java 3:45 - Brackets - The Main Event!!! 4:18 - Different brackets and their roles in Java 6:18 - Basic explanation of an Array 7:04 - Recap of so far and common mistakes made 7:25 - The use of comments in code 7:48 - Indentation 8:10 - Building and Running of program 8:42 - Problems when relying on IDE to place brackets 9:19 - An example of how placing of brackets influences code - Learn by Example! 9:45 - The if decision construct with explanation 10:11 - The sout & tab shortcut for System.out.println() 12:46 - The use of an if without { }'s - What happens? 14:03 - Quick recap on the roles of brackets Please leave any questions, suggestions in the comments P.S. I know I get a bit stroppy and thick at times in the vid, but you should see me when Cork are playing ;-) * Thanks to ThinkMedia for the help on this one :-) https://www.youtube.com/watch?v=yfEdhlBuxCU

Иконка канала Java Бест Практики
2 подписчика
12+
14 просмотров
2 года назад
5 декабря 2023 г.
12+
14 просмотров
2 года назад
5 декабря 2023 г.

Brackets and other beginner concepts in Java The use of different types of brackets in coding is often overlooked, yet their correct placement is probably one of the most essential skills for a beginner coder. There are three main brackets in Java 1. { } - Curly - These set the boundaries of a section of code, either a class, method, if, for loop. 2. ( ) - Round - These contain the input parameters to methods/functions. 3 [ ] - Square - These signify the use of arrays. Knowing how and where to use these, especially the { }'s, is imperative and perhaps this is overlooked by teachers (I know I've made this mistake!). Main Sections* 0:00 - Intro 0:52 - How to change font size and theme in Intellij 1:32 - The Role of the main() method in Java 3:45 - Brackets - The Main Event!!! 4:18 - Different brackets and their roles in Java 6:18 - Basic explanation of an Array 7:04 - Recap of so far and common mistakes made 7:25 - The use of comments in code 7:48 - Indentation 8:10 - Building and Running of program 8:42 - Problems when relying on IDE to place brackets 9:19 - An example of how placing of brackets influences code - Learn by Example! 9:45 - The if decision construct with explanation 10:11 - The sout & tab shortcut for System.out.println() 12:46 - The use of an if without { }'s - What happens? 14:03 - Quick recap on the roles of brackets Please leave any questions, suggestions in the comments P.S. I know I get a bit stroppy and thick at times in the vid, but you should see me when Cork are playing ;-) * Thanks to ThinkMedia for the help on this one :-) https://www.youtube.com/watch?v=yfEdhlBuxCU

, чтобы оставлять комментарии