Menu
Coddy logo textTech

Recap - Initialize Variables

Part of the Fundamentals section of Coddy's Java journey — lesson 12 of 73.

challenge icon

Challenge

Beginner

Write code that initializes the following variables:

  • k with the value 88
  • PI with the value 3.14
  • name with the value "bob"
  •  

Make sure you use the exact variables names and values. Remember, Java is case sensitive!

Try it yourself

public class Main {
    public static void main(String[] args) {
        // Type your code below

        
        // Don't change the lines below
        System.out.println("k = " + k);
        System.out.println("PI = " + PI);
        System.out.println("name = " + name);
    }
}

All lessons in Fundamentals