How do i view this type of application?
I copied this example code from a book, but i dont know how to view it as a running program:
public class PondVolume {
public static void main(String[] args) {
if (args.length != 3) {
System.out.println("Usage: java Pondvolume Length Width Depth");
System.exit(0);
float length = Float.valueOf(args[0]).floatValue();
float width = Float.valueOf(args[1]).floatValue();
float depth = Float.valueOf(args[2]).floatValue();
float volume = length * width * depth * 7.5f;
System.out.println("Pond length = " + length + " feet");
System.out.println("Pond width = " + width + " feet");
System.out.println("Pond depth = " + depth + " feet");
System.out.println("Pond volume = " + volume + " gallons");
is there anything wrong with this code, and how should i run it?
Thanks
At the command prompt you type "javac PondVolume.java" to compile and then to run type "java PondVolume x y z" where x is the length of your pond, y is the width, and z is the depth. The program will print the results to the screen.
-S-
Similar Messages
-
When I view the music on my iPhone in iTunes, how do I view this by album, rather than in a long list of songs? When I view the music stored on my iMac, I get a choice to view by Songs, Artists, Albums, Composers, etc. But I don't get any choice with the music on my iPhone.
Its really hard to manage the music on my iPhone. I want to quickly remove albums and add new ones.
Is there a solution that I haven't seen?turboweaver wrote:
When I view the music on my iPhone in iTunes, how do I view this by album, rather than in a long list of songs? When I view the music stored on my iMac, I get a choice to view by Songs, Artists, Albums, Composers, etc. But I don't get any choice with the music on my iPhone.
Its really hard to manage the music on my iPhone. I want to quickly remove albums and add new ones.
Is there a solution that I haven't seen?
Create a playlist, add/delete albums and sync this playlist.
You don't need to manually manage the iPhone music to do this. -
Any ideas how I can view this flv file?
I have CS3 Flash using Flash Player 9 and Actions Script 3. I am publishing a progressve loading swf, which has an absolute path to an flv of http://www.haleygroup.com/work_images/basics.flv. The swf file is located here http://www.haleygroup.com/work_images/basics.swf, along withn the html, flv, and skin. When I click the button (configured by an XML file) on my web site to view the file, I get a flickering box. Other flvs in the XML file are configured the same way and work fine. See this flickering box at http://www.haleygroup.com/, enter site and go to "et al" page, then click "Basics". Any ideas how I can view this flv file? Many, many thanks.
I just changed the path to a relative path of just "basics.flv" and still have the problem. See swf at http://www.haleygroup.com/work_images/basics.swf. Thanks.
-
Hi everybody !
AT&T company is unlocked (factory)my iphone4 before 3 days ago so i want to restore to unlock iphone 4 with itunes but it is not restore.
How can I fix this type of error in iphone 4?- "The iphone could not be restored. An unknown error occurred (3194) "
please help me in nepali language(if posible) or english. thank you.http://support.apple.com/kb/TS3694#error3194
This means that either your firewall/antivirus is blocking access to Apple's servers, or you have used your computer to jailbreak an iDevice in the past. The link above tells you how to resolve this issue. -
How can i produce this type of line chart (yield curve) by using flex2 charting?
help! I am a flex newcomer, how can i produce this type of
line chart (yield curve) by using flex2 charting? Anybody can teach
me how can i customize the width of each scales as below of line
chart? anybody know this?
Click
Here To SeeI need to show the X and Y Co-ordinate in a message when I click on the graphic's point.
thanks for the tips, I´ll try to understand the sample program.
Noguti -
I do not have a mailto under my application file. How do I add this to the application. I am trying to change my email links to gmail. I am using Vista.
Try "Reset all user preferences to Firefox defaults" on the [[Safe mode]] start window.
* http://kb.mozillazine.org/Resetting_preferences -
I purchase a movie on iTunes, when I tried to view I get error massage, requested ULR is not found on server. What does this mean and how can I view this movie.
familyfromapo wrote:
The movies are Dexter that we purchased at a store. He uses the Air and since it does not have the disk option this is how we were hoping he could view his shows. We had no idea we would be breaking the law....just wanted to put all of the movies we have purchased on the external solely for the intent of our viewing.
Thank you for your time and help.
Sorry.
It is illegal to break the encryption to copy a dvd.
Judge: DVD-copying software is illegal - CNET News
Judge Rules DVD-Copying Software Is Illegal | Threat Level | Wired ...
MPAA Says Making Even "One Copy" of a DVD is Illegal -
How to find the message type for application
Hi Guys,
while postnig the data through idocs,we use message types
the issue is how can we find the massage type for application?
plzz helpYou can find these in transaction WE82.
You can find in WE57, this basis type, which fm is attached (BAPI_IDOC_INPUT1).
Then check out transactions WE41 and WE42.
You can use the table EDIMSG, in SE16 to list all the msg types making use of the same IDoc.
or
If you want to get all the message types, you can use WE81.
If you want to see which message types are attched to a particular Idoc type, use WE82
check it in BD60 and WE57.. -
How to retrieve view column type?
I know how to retrieve column names and comments from
table all_col_comments.But I don't know retrieving view column type.If somebody know please help.ALL_TAB_COLUMNS
ALL_TAB_COLUMNS describes the columns of the tables, views, and clusters accessible to the current user. To gather statistics for this view, use the SQL ANALYZE statement or the DBMS_STATS package.
Related Views
DBA_TAB_COLUMNS describes the columns of all tables, views, and clusters in the database.
USER_TAB_COLUMNS describes the columns of the tables, views, and clusters owned by the current user. This view does not display the OWNER column.
Column Datatype NULL Description
OWNER
VARCHAR2(30)
NOT NULL
Owner of the table, view, or cluster
TABLE_NAME
VARCHAR2(30)
NOT NULL
Name of the table, view, or cluster
COLUMN_NAME
VARCHAR2(30)
NOT NULL
Column name
DATA_TYPE
VARCHAR2(30)
Datatype of the column
DATA_TYPE_MOD
VARCHAR2(3)
Datatype modifier of the column
DATA_TYPE_OWNER
VARCHAR2(30)
Owner of the datatype of the column
DATA_LENGTH
NUMBER
NOT NULL
Length of the column in bytes
DATA_PRECISION
NUMBER
Decimal precision for NUMBER datatype; binary precision for FLOAT datatype, null for all other datatypes
DATA_SCALE
NUMBER
Digits to right of decimal point in a number
NULLABLE
VARCHAR2(1)
Specifies whether a column allows NULLs. Value is N if there is a NOT NULL constraint on the column or if the column is part of a PRIMARY KEY.
COLUMN_ID
NUMBER
NOT NULL
Sequence number of the column as created
DEFAULT_LENGTH
NUMBER
Length of default value for the column
DATA_DEFAULT
LONG
Default value for the column
NUM_DISTINCT
NUMBER
These columns remain for backward compatibility with Oracle7. This information is now in the TAB_COL_STATISTICS views. This view now picks up these values from HIST_HEAD$ rather than COL$.
LOW_VALUE
RAW(32)
HIGH_VALUE
RAW(32)
DENSITY
NUMBER
NUM_NULLS
NUMBER
Number of nulls in the column
NUM_BUCKETS
NUMBER
The number of buckets in histogram for the column
Note: The number of buckets in a histogram is specified in the SIZE parameter of the SQL statement ANALYZE. However, Oracle does not create a histogram with more buckets than the number of rows in the sample. Also, if the sample contains any values that are very repetitious, Oracle creates the specified number of buckets, but the value indicated by this column may be smaller because of an internal compression algorithm.
LAST_ANALYZED
DATE
The date on which this column was most recently analyzed
SAMPLE_SIZE
The sample size used in analyzing this column
CHARACTER_SET_NAME
VARCHAR2(44)
The name of the character set: CHAR_CS or NCHAR_CS
CHAR_COL_DECL_LENGTH
NUMBER
The length
GLOBAL_STATS
VARCHAR2(3)
For partitioned tables, indicates whether column statistics were collected for the table as a whole (YES) or were estimated from statistics on underlying partitions and subpartitions (NO).
USER_STATS
VARCHAR2(3)
Were the statistics entered directly by the user?
AVG_COL_LEN
NUMBER
Average length of the column (in bytes)
CHAR_LENGTH
NUMBER
Displays the length of the column in characters. This value only applies to the following datatypes:
CHAR
VARCHAR2
NCHAR
NVARCHAR
CHAR_USED
VARCHAR2(1)
B | C. B indicates that the column uses BYTE length semantics. C indicates that the column uses CHAR length semantics. NULL indicates the datatype is not any of the following:
CHAR
VARCHAR2
NCHAR
NVARCHAR2
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96536/ch2143.htm#1302694
Joel P�rez -
Body onload="..." how can we access this type of functionality?
Im working with a portlet, created in javascript. I would like to call a function when the portlet is first displayed (meant to populate a database driven list). However since the body onload event is not able to be modified from within a portlet, how can I accomplish this same type of functionality within plumtree?
<body onload=".. :( ..">Because the portal page is a shared environment where several different portlets may all need to use the onload event handler, we cannot simply allow each portlet to register its own onload event handler. Each would overwrite the other, and only the last portlet on the page would receive the benefit of using the onload event.
To accommodate this, a client-side object called the PCC, short for Portlet Communication Component, exists to essentially "multiplex" a single onload event into multiple calls. To take advantage of this functionality, you will need to register the function you want called with the PCC.
Add a line of script to your portlet which looks something like:
document.PCC.RegisterForEvent(namespaceURN, eventName, sFunction)
namespaceURN = a namespace for your event, or just pass in false if you want to use the default window namespace.
eventName = the event you want to register your function with, 'onload' in your case.
sFunction = the name of your function, or an object reference to your function. -
Is flash used to design this type of application?
I am looking to purchase the Studio 8 bundled package but I
am not sure if it will be capable in designing my site /
application. We are looking to add a drag-and-drop application
directly to the front end of our web site. Similar to the links
below:
www.dragdropsitecreator.com
and www.handzon.com/fulldemo.htm
It looks like CSS is incorporated with the sites but can any
of the programs in the Studio 8 package do CSS. I am a novice so
any help is appreciated. In the end, we are looking to develop a
flash / html based web site and have the drag and drop application
incorporated as an added feature.
Thanks,
BWhat do you mean exactly by "Start.Drag & Stop.Drag "?
I definitely knew that Flash is what we needed but the
developer/designer that I was in contact with back in early 2005
has since been gobbled up by the busy-ness of web 2.0. I would like
to work with him but I need the site/application done soon. I've
been sitting on it too long.
We're going to be doing some interior design work and I
wanted the ability to move items around a room. We want to give our
customers the feeling of being involved with the process. I want
the items to have extreme detail. Almost real looking. From what
you're saying, the Studio 8 package will give us all we need for
designing this type of site. I have the idea talent but will
probably be referencing the Help/Tutorial section a bit. -
How to deal with this type of flash warring
I develop a ocx for playing flash on web .Then I also place a
swf that has encrypted on web,before it can be played it must
retrive the need information form ocx for decoding.But when I play
the swf on web,it will warring that Adobe Flash Player has disable
this type of unsafe operation.So I can't play the swf normaly , I
wonder if I should apply a digital signature from Adobe for my ocx
if I intend to use my ocx on web.A digital signature will not solve your problem. A networked
SWF -cannot- access a local file system SWF. So the security
sandbox error you're getting is legitimate.
Please read the Flash Player security articles on the Adobe
Developer Connection:
http://www.adobe.com/devnet/flashplayer/ -
How to deal with this type of flash warning
I develop a ocx for playing flash on web .Then I also place a
swf that has encrypted on web,before it can be played it must
retrive the need information form ocx for decoding.But when I play
the swf on web,it will warning that Adobe Flash Player has disable
this type of unsafe operation.So I can't play the swf normaly , I
wonder if I should apply a digital signature from Adobe for my ocx
if I intend to use my ocx on web.A digital signature will not solve your problem. A networked
SWF -cannot- access a local file system SWF. So the security
sandbox error you're getting is legitimate.
Please read the Flash Player security articles on the Adobe
Developer Connection:
http://www.adobe.com/devnet/flashplayer/ -
How do I achieve this type of menus ?
I'd like to achieve this type of pop-up menu :
http://www.fireworkszone.com/
Any suggestions please ? thanks in advance,> Do not know them
I do. Not with a 25-foot pole....
Your PVII recommendation is bang on.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Ken Binney" <[email protected]> wrote
in message
news:fu04fc$1ol$[email protected]..
> They used Quickmenu $150
>
http://www.opencube.com/quickmenu.asp
> Do not know them
>
>
> Project 7 is highly recommended for excellent support
under $90
>
http://www.projectseven.com/products/menusystems/pmm/index.htm
>
>
>
> "Sw Jiten" <[email protected]> wrote in
message
> news:fu03a5$h8$[email protected]..
>> I'd like to achieve this type of pop-up menu :
>>
>>
http://www.fireworkszone.com/
>>
>> Any suggestions please ? thanks in advance,
>
> -
How do I view or open an application/applefile that somebody has sent to me,
Somebody who uses an Apple computer has scanned and sent me a document (Applefile) to my email as an attachment.
When I want to open it, a box opens and Firefox asks me
What should Firefox do with this file?
Open with ¨Browse ¨,
or Save file.
I want to open this file, but do not know with which application I am suppose to open it,
nor do I know how to find such an application.
I use Open Office, and normally Firefox chooses for me how to open something, but sadly not this time.
So, I do not know how to open this file.
Who can help me?See if the answer in this thread helps you. <br />
http://www.pcreview.co.uk/forums/thread-3382267.php
The easiest thing to do might be to ask the sender to resend that attachment using a different email program, or by web mail.
Maybe you are looking for
-
FIXED: DVI-to-Video Adapter + Windows
For those interested, please see: http://discussions.apple.com/thread.jspa?threadID=1266844&tstart=0 This might fix other DVI-output issues too.
-
Need SD and SD/FI Interview Questions
Hi, I need real-time interview questions for SD and SD/FI including sample tickets, project implementation type questions, and most commonly asked questions. I would greatly appreciate if you could send it to: [email protected] Rewards will be given
-
Old version of Spotify on iOS 6 in France (iPhone 3GS)
Since Spotify update on Apple Store, it is impossible to install Spotify on my iPhone 3GS as it has to stay on the iOS6 . Do you know a way to run Spotify on iPhone 3GS (iOS6) ? Depuis la mise à jour de Spotify sur Apple Store, il est impossible d'in
-
Automatic file synchronization suggestions
Hello all I have received the following request from one of our local administrators. My wish is to do this the most "sophisticated" way possible, but without using any third-party software. Can I kindly ask you for any suggestions what might be the
-
Change the iTunes store an app is associated with
I have two active iTunes store accounts in two countries because I have homes in both locations (U.S. and another country). These two accounts allow me to download content that is available only in one of those countries to my one iPhone. I know how