Lesson 4/12 Char data

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

public class DataTypesC {
public static void main(String args) {

	System.out.println("G");

<In what way does your code behave incorrectly? Include ALL error messages.>
In the instructions for the “char” data, in the parenthesis after system.out.printin I am to type in a single character in single quotations. That is what I did, even using the character in the example, and an error message pops up. It asks if I have used single quotations and suggests I look to the example for help.

<do not remove the three backticks above>

instruction:

In between the parentheses of System.out.println(); type any single character of your choice. Make sure it’s enclosed in single quotes!

you used " " quotes!

read the instruction again :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.