GRADE 11

JAVA MATERIAL FOR GRADE 11 STUDENTS

Gr 11 12 Not !

In Java "not" is a bit awkward when used with a String method like "equals" if (name.equals("steve") {    } is easy to understand. If the name equals "steve" then execute the code block that follows. What about if the name does not equal steve? if ( !...

read more

Gr 11 – Switch Case

Complex "if-then-else" statements are needed when there are many options e.g. consider all the options in a menu. Fortunately, there is a better way when a lot of options are needed i.e. the "Switch-Case-Break" construct. It works exactly the same as "if-else" but its...

read more

Java NetBeans 17

Java version 17 (JDK 17) is a LTS (Long Term Support version of Java). We use this version together with Apache NetBeans version 17. It is a good idea to uninstall any previous versions of Java and NetBeans using Windowns Control Panel, Uninstall software. Click here...

read more

Gr 11 – Date time methods

Java - LocalDate, LocalTime, LocalDateTime These date time classes have a number of methods. Here is the list . . . Cautionary: Some of these methods are static, some are non-static, some need parameters, some are void, some are typed. See code examples for more...

read more