473,626 Members | 3,443 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.prin t ("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 1083
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.prin t ("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
1251
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 pseudocode, thread pool not implemented, but demonstrates the problem): Logger log def ThreadFoo(job): log.write(os.open(job).read())
1
1564
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 structures of the tables in my database at work. (n.b. The whole database is well under 20 MB) I was wondering about a quick and convenient method to communicate those changes home. I can't use networked replication because of the firewalls at each...
8
3179
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 FLD-ID = @inputVAR UPDATE TABLE2 SET FLDx = @var1, FLDy = @var2
27
3389
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 as ff: typedef struct { float *data ; int count ;
11
1863
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 palmtop. I don't want all of the data in the table - just current members details (I allready have a query to show only current members that is used in a number of other places in the database). I can manage to export the data to an excel file and...
0
990
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 question arises in licensing (when else?). The LGPL has pretty clear boundaries on static versus dynamic linking. That would be pretty clear in the old days using MFC programs and code compiled with VS6 C++ into DLLs. But what about .NET assemblies? ...
55
2706
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
9899
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
52463
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 array, and for each iteration, I have to zero out the array. This is how I am currently doing it: // Zero out the lnscores for( count=0; count < chunksize; count++ ) lnscores = 0; Is there no quicker way to do this? I know there must be...
0
1331
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 condensed, compact (no graphics), fast-loading pages with a 100+ links to some of my favorite web sites on a particular subject. I hope you'll give them a try... Here's the link... http://www.winograd.com/QLP
0
8268
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8202
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8510
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6125
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5575
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4093
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4202
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2628
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 we have to send another system
1
1812
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.