Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > Java

Reply
 
LinkBack Thread Tools Display Modes
Old 10-27-2003, 01:07 PM   #1 (permalink)
Stupidnewb
Registered User
 
Stupidnewb's Avatar
 
Join Date: Oct 2003
Posts: 6
Stupidnewb is on a distinguished road
I just forgot something really easy again.

Hello again everyone.


I was wondering what the symbol " " or notation or whatever it's called means when something like this appears.


int a = 2

int b = 3

int c = 4


system.out.println ( a + " " + b + " " + c);

So how does the computer determine what " " means, and where does it get that from?

Stupidnewb is offline   Reply With Quote
Old 10-27-2003, 01:59 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,530
sde is on a distinguished road
i'm not a java expert, but in c#, " " would just be a string character which represents a space. the + signs just concatenate all of it together.

your example would print: "2 3 4"

i think anyway.
__________________
Mike
sde is offline   Reply With Quote
Old 10-27-2003, 05:32 PM   #3 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,175
Belisarius is on a distinguished road
In Java too. And jsut about every other language out there.

Hope Stupidnewb remembers to capitalize that "System", Java's case sensitive. That, and the semi-colons after the "int" assignments.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 10-27-2003, 11:17 PM   #4 (permalink)
joe_bruin
LOAD "*",8,1
 
Join Date: Feb 2003
Location: la.ca.us
Posts: 254
joe_bruin is on a distinguished road
i wish i had people to do my homework for me when i was in school.
joe_bruin is offline   Reply With Quote
Old 10-28-2003, 01:06 AM   #5 (permalink)
Stupidnewb
Registered User
 
Stupidnewb's Avatar
 
Join Date: Oct 2003
Posts: 6
Stupidnewb is on a distinguished road
I wish this was my homework, I feel bad for you bruins, you're not getting a complete education, if this is all you have to do. =(
Stupidnewb is offline   Reply With Quote
Old 10-28-2003, 01:07 AM   #6 (permalink)
Stupidnewb
Registered User
 
Stupidnewb's Avatar
 
Join Date: Oct 2003
Posts: 6
Stupidnewb is on a distinguished road
Quote:
Originally posted by Belisarius
In Java too. And jsut about every other language out there.

Hope Stupidnewb remembers to capitalize that "System", Java's case sensitive. That, and the semi-colons after the "int" assignments.
Thanks for the heads up, I wasn't just cutting and pasting text, I thought I could get away with just writing s.o.p. but I think that would confuse people further, I know you guys have a hard enough time just figuring out what I wrote :p I guess I should minor in english :p
Stupidnewb is offline   Reply With Quote
Old 12-09-2003, 01:18 PM   #7 (permalink)
.pakmon.
Guest
 
Posts: n/a
that's c++ too...
just had to get that in there...
kthnx. :rock:
  Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forgot to use friendly HTML representatives DavH27 Feedback 1 10-28-2004 06:22 PM
Easy way to tell the data type of a string? Epsilon PHP 2 06-16-2004 06:21 PM
I just forgot something really easy! Stupidnewb Java 5 10-23-2003 05:22 AM
Easy Template System randy PHP 0 05-27-2003 09:33 AM
Easy Synchronization between MySQL DBs sde PHP 1 05-19-2003 02:54 PM


All times are GMT -8. The time now is 12:55 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting