print and println – Intro to Java Programming

print and println – Intro to Java Programming


They print 39. The cursor starts right here. And then, we print 3. But since it’s just print and not print line, it doesn’t go down to the next line. So then, the cursor is right here. And then, it takes the 4 plus 5. And since there aren’t any quotes, it adds them together and gets 9 and prints right here. And then, since its print line our cursor would go down to the next line. But then, we don’t print anymore, so we don’t notice that. We can see that if we make a program. So, we add all these pieces that we need to make the computer happy, And then, we add our own code then we close it all up and run it, and it prints out 39.

1 thought on “print and println – Intro to Java Programming”

Leave a Reply

Your email address will not be published. Required fields are marked *