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 Forums
>
Application and Web Development
>
Java
Help me!
User Name
Remember Me?
Password
Register
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
LinkBack
Thread Tools
Display Modes
04-28-2003, 02:26 PM
#
1
(
permalink
)
Drizzt
Registered User
Join Date: Mar 2003
Location: Virginia, USA
Posts: 2
Help me!
I'm an absolute newbie in need of help with Java.
I keep getting an error trying to compile the following:
return x ^ y;
Where x is a double and y is an int.
help?
Oh, I'm using BlueJ if thats any good...
__________________
Drizzt
View Public Profile
Visit Drizzt's homepage!
Find More Posts by Drizzt
04-28-2003, 02:57 PM
#
2
(
permalink
)
abc123
bloomberg
Join Date: Jun 2002
Location: bloomberg
Posts: 263
well that won't give you an error
it will give you x [exclusive or] y
perhaps you want x [to the power of] y
which would, simply, be:
Code:
return Math.pow(x, y);
__________________
-- bloomberg.
abc123
View Public Profile
Visit abc123's homepage!
Find More Posts by abc123
04-28-2003, 03:27 PM
#
3
(
permalink
)
Drizzt
Registered User
Join Date: Mar 2003
Location: Virginia, USA
Posts: 2
Ok I figured that out
With the teacher's "Help" of course...
basically, I need someone to help me learn java in oh, 2 days or so... This teacher is so dry I havent paid attention and now I'm waaaaay behind...
Hey, at least I'm honest...
__________________
Drizzt
View Public Profile
Visit Drizzt's homepage!
Find More Posts by Drizzt
04-28-2003, 11:09 PM
#
4
(
permalink
)
saline
I am red.
Join Date: Feb 2003
Location: Cleveland, OH
Posts: 139
True, at least you're being honest. I'm willing to bet people will help you here, as for learning Java in two days I hope you like online references.
I bet Sun among other places has reams upon reams of (virtual paper) information about Java so good luck with that.
Here's a google search for java tutorial
http://www.google.com/search?hl=en&i...=java+tutorial
What do you know, Sun's tutorial is at the top of the list, here's to being right eh?
Good luck.
__________________
http://home.cwru.edu/~cak19
It's my homepage with odd little bits of javascript.
saline
View Public Profile
Visit saline's homepage!
Find More Posts by saline
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
vB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
On
Pingbacks
are
On
Refbacks
are
On
All times are GMT -8. The time now is
07:39 PM
.
Contact Us
-
CodeNewbie.com
-
Archive
-
Top
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by
vBSEO
3.0.0 RC8
Copyright © 2000-2006, Milano Interactive
Web Hosting provided by
Portal 360 Web Hosting
Open Circle
LinkBack
LinkBack URL
About LinkBacks