Code Newbie
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 Newbie
    forums
Go Back   Code Forums > Application and Web Development > Java
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 04-28-2003, 02:26 PM   #1 (permalink)
Drizzt
Registered User
 
Drizzt's Avatar
 
Join Date: Mar 2003
Location: Virginia, USA
Posts: 2
Drizzt is on a distinguished road
Send a message via ICQ to Drizzt
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 is offline   Reply With Quote
Old 04-28-2003, 02:57 PM   #2 (permalink)
abc123
bloomberg
 
abc123's Avatar
 
Join Date: Jun 2002
Location: bloomberg
Posts: 263
abc123 is on a distinguished road
Send a message via AIM to abc123 Send a message via Yahoo to abc123
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 is offline   Reply With Quote
Old 04-28-2003, 03:27 PM   #3 (permalink)
Drizzt
Registered User
 
Drizzt's Avatar
 
Join Date: Mar 2003
Location: Virginia, USA
Posts: 2
Drizzt is on a distinguished road
Send a message via ICQ to Drizzt
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 is offline   Reply With Quote
Old 04-28-2003, 11:09 PM   #4 (permalink)
saline
I am red.
 
saline's Avatar
 
Join Date: Feb 2003
Location: Cleveland, OH
Posts: 139
saline is on a distinguished road
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 is offline   Reply With Quote
Reply


Thread Tools
Display Modes

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.


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