User Profile
Collapse
-
well i didnt define any classes with teh name math, but i will look into the java.util.rando m, sounds good, thanks for your help.... -
Java applet Math.Random wont work
i am in programming class trying to make an applet involving random placement of colored blocks, but an error is created when i try to run it saying "no method named "random" was found in type "Math". "
i have imported java.awt like so:
import java.awt.*;
and this is the random number statement:
g.fillRect((int )(Math.random() *getSize().widt h),(int)(Math.r andom()*getSize ().height),20,2 0);... -
sorry i didnt explain wat i was asking to well, im not asking for the program, i was just stating what my end goal was, i need help with accessing the network/identifying individual computersLeave a comment:
-
Lan chatroom
hey im doing a final project for a computer sciences class, and i need some help, i was going to try to create a kind of instant messanger (chat room style, over LAN only) and i need a pop up alert when a new user joins the chat, ive tryed multiple times and failed, so i decided t scrap an start new, ne ideas?? i cud really use some help
thnx in advance
Helmer -
hey if u can get a chart for the keycodes of the keys on a keyboard, im sure u are all familiar with a case statement...
form keydown event
select case Keycode
case vbkeyX' x=keycode
here u put wat u want t happen wen that key is hit
case vbkeyY y=keycode
here u put wat u want t happen wen that key is hit
end select
or more...Leave a comment:
-
hey if u can get a chart for the keycodes of the keys on a keyboard, im sure u are all familiar with a case statement...
form keydown event
select case Keycodecase vbkeyX' x=keycodehere u put wat u want t happen wen that key is hitcase vbkeyY y=keycodehere u put wat u want t happen wen that key is hitend select
for most keys the keycode is the keyname ex K's keycode is vbkeyK, etcLeave a comment:
-
hey may of already been suggested but u may want to look into a 3d array,
dim array(x, y, z) as long 'where x and y= dimensions of your matrix, and z= how many matrixes you have, that way you can just multiply the planes of the 3d array nice and efficient, and only 1 array is usedLeave a comment:
-
heres another way t do it:
Dim Input as single
Dim Output as Single
Output=Input
for x= input to 2Output=Output*( Input-1)next x
'where input is the number befor the factorial sign(!), and output is well your output
nice an simple as the factorial is the number multiplied by number- 1, untill number-1= 1 as if it went till number=1 then you would multiply by 0 and poof pointless :P...Leave a comment:
No activity results to display
Show More
Leave a comment: