From 9d09a4bb9e341e16d34738977e8cfb9409f2a794 Mon Sep 17 00:00:00 2001 From: Edan Thomton Date: Sat, 23 May 2026 21:39:17 -0400 Subject: [PATCH] Change image from contentfigure to slides looks nicer --- src/content/docs/intro-to-java/java-fundamentals.mdx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/content/docs/intro-to-java/java-fundamentals.mdx b/src/content/docs/intro-to-java/java-fundamentals.mdx index e26a3e1..cbea8a3 100644 --- a/src/content/docs/intro-to-java/java-fundamentals.mdx +++ b/src/content/docs/intro-to-java/java-fundamentals.mdx @@ -5,6 +5,7 @@ prev: intro-to-java/java-fundamentals next: false --- import Aside from '../../../components/Aside.astro'; +import Slides from '../../../components/Slides.astro'; import ContentFigure from '../../../components/ContentFigure.astro'; ## Syntax @@ -14,9 +15,13 @@ If your code has a red line under it, first check whether the syntax is correct. You can also learn what’s wrong with your code when you put the cursor over the section of the code with the red line and read what the error message is. Error messages will not tell you exactly what's wrong with your code. If you’re unsure on what the error message means, you can look it up to get additional context. - - + + ![Slide 1](/java-fundamentals/ErrorExample1.png) + An example of a syntax error (note the squiggly line) + ![Slide 2](/java-fundamentals/ErrorExample2.png) + An example of a syntax error popup + ## Variables Variables are containers that are used to store information in a program. This could be a variable that holds the temperature or a variable that holds the speed of the motor.