473,500 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Quick, easy clear-up

5 New Member
I have a test tomorrow over Java, and I have been practicing with Javabat.com. My question concerns the difference in printing with Java and javascript.

In Javascript (or using Javabat) I would say:

return "true";

In java, is this right:
System.out.print ("true");

I tend to confuse the puntuation, so I want to clear this up before tomorrow, but our book uses javascript too.

--------
Thanks you in advance!
Mar 31 '08 #1
2 1079
Laharl
849 Recognized Expert Contributor
Your Java is correct.
Mar 31 '08 #2
r035198x
13,262 MVP
I have a test tomorrow over Java, and I have been practicing with Javabat.com. My question concerns the difference in printing with Java and javascript.

In Javascript (or using Javabat) I would say:

return "true";

In java, is this right:
System.out.print ("true");

I tend to confuse the puntuation, so I want to clear this up before tomorrow, but our book uses javascript too.

--------
Thanks you in advance!
return "true"; in Javascript does not print anything anywhere.
Mar 31 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1244
by: max khesin | last post by:
I am working on a windoze service (deamon) that needs to spawn up to NumCPU heavyweight processes on SMP and wait for results, which have to be logged. So I have to do something like (total...
1
1561
by: Guinness Mann | last post by:
I develop with SQL Server 2000 at work. Because I occasionally work at home I also have SQL Server there. Although the data is not all that important, occasionally I make changes to the...
8
3161
by: Perre Van Wilrijk | last post by:
Hello, I have 2 ways of updating data I'm using often 1) via a cursor on TABLE1 update fields in TABLE2 2) via an some of variables ... SELECT @var1=FLD1, @var2=FLD2 FROM TABLE1 WHERE...
27
3364
by: Susan Baker | last post by:
Hi, I'm just reading about smart pointers.. I have some existing C code that I would like to provide wrapper classes for. Specifically, I would like to provide wrappers for two stucts defined...
11
1846
by: Chris Naylor | last post by:
I'm sure that to most of you this will be an easy answer but to me it isn't so here goes.. I have a database that I want to export a table from into Excel format so that I can use it on my...
0
973
by: mumin via DotNetMonster.com | last post by:
All, quick question about assemblies. If someone uses another .NET assembly in a . NET program, is the first program considered "dynamically linked" into the new program? Of course the...
55
2671
by: Steven Nagy | last post by:
Hi all, Sorry I have no time to test this myself.... Can I add the same attribute to a field twice? Eg. Public string myField;
3
9883
by: kathy | last post by:
I want to know what is the easy way to check if a string is a number or not? the number can be int, float, double, scientific,... what is the easy way for only interger?
14
52447
by: rocketman768 | last post by:
Man, that title should be in a poem, but anyways...So, I have this program, and it has an array of 40 million elements. The problem is that I have a for loop that continually is doing stuff to this...
0
1321
by: Ken | last post by:
Hi. I've recently organized and even color-coded many of my favorite bookmarks on WEB DEVELOPMENT (and a few other favorite subjects too) into what I call QUICK LINK PAGES. These are very...
0
7136
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7182
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7232
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
4923
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4611
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3110
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3106
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1430
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.