HOW TO system.out.PRINT a curly brace: {

How is it possible to print a{ with command: system.out.print{ "text { text"}; ?Thanks
[100 byte] By [John@Hazea] at [2007-10-1 2:03:21]
# 1
Sorry, I do not quite understand your question. The following code:System.out.println("Test { bracket");produces the following output on my screen:Test { bracket- Saish
Saisha at 2007-7-8 10:33:08 > top of Java-index,Administration Tools,Sun Connection...
# 2

> How is it possible to print a{ with command:

> system.out.print{ "text { text"}; ?

> Thanks

Your command has 2 errors in it.

1) "system" must start with a capital "S"

2) You used curly brackets where you should have used parentheses

This works: System.out.print( "text { text");

(although I suspect that you really want to use println, not print)

ChuckBinga at 2007-7-8 10:33:08 > top of Java-index,Administration Tools,Sun Connection...
# 3

ok, I see.

Whats the difference between print and println?

The command above was just pseudocode though not made clear.

I have another question in the same direction: How to println this sign :"(an apostrophe) . I hoped to get an apostrophe as a result for printing this: '

But no chance, do you know. Thanks so far!

John@Hazea at 2007-7-8 10:33:08 > top of Java-index,Administration Tools,Sun Connection...
# 4
I think I know it:'\"'(this is how a double quote is written to the console)
John@Hazea at 2007-7-8 10:33:08 > top of Java-index,Administration Tools,Sun Connection...