Lesson 4/12 Char data


#1


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

	System.out.println("G");


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.

`


#2

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:


#3

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