Java Java Basics Getting Started with Java Strings and Variables

Jing Zhang
PRO
Jing Zhang
Pro Student 6,458 Points

Picked Up bla bla bla, and no result come out

import java.io.Console;

public class Introductions {

    public static void main(String[] args) {
        Console console = System.console();
        // Welcome to the Introductions program!  Your code goes below here
        console.printf("Hello, my name is Craig\n");
        console.printf("Craig is learning how to write Java\n");
  }
}

What is wrong with my code???

Brendon Butler
Brendon Butler
4,233 Points

What command are you running in the console to compile/run your application?

1 Answer

William Matheny
William Matheny
13,297 Points

You did not add the %s method with it like you were supposed to do.