3,927 Posted Topics

Member Avatar for The Dude

Wouldn't it be ironic if the pregnancy she terminated would have grown into the person who perfected a carbon-less energy source that brought the entire world out of its dependence on fossil fuels? :) (Though you're probably right - the gene pool is most likely better off)

Member Avatar for Sturm
0
98
Member Avatar for rdonr

[QUOTE=rdonr;478683]hmm 400 is way over my budget haha i'm a broke college student so i'll do what i can[/QUOTE] Cheaper and more productive to just do your own homework.

Member Avatar for Salem
0
137
Member Avatar for DeadJustice

You just have the boolean values reversed in the conditions[code=java] if ( numerator != -99) { int result = quotient( numerator, denominator ); System.out.printf( "\nResult: %d / %d = %d\n", numerator, denominator, result ); //continueLoop = true; don't even need this one } else { continueLoop = false; // set …

Member Avatar for DeadJustice
0
96
Member Avatar for scru

[quote=MattEvans;463999]Ah, me to, in terms of formal teaching; but I don't believe that you haven't done ( or won't do ) a load of 'extra-curricular' reasearch to augment that. :)[/quote] I'd agree. The math of 3D transformation, physics, intersections, etc is beyond what I consider normal high school math. Some …

Member Avatar for addy999
0
175
Member Avatar for vinod_javas

Many of the javax packages are included in the JDK distribution. A few of them, however, are separate downloads on the Sun site. The media framework is one of them. You can get it here: [url]http://java.sun.com/products/java-media/jmf/[/url]

Member Avatar for vinod_javas
0
143
Member Avatar for boyz

Jishnu was the one who asked a few days ago. This guy is definitely just reposting questions at this point and hopefully on the fast track to a ban.

Member Avatar for Ancient Dragon
-3
288
Member Avatar for Jishnu

So have you come up with an answer to this homework question yet? When do you think they could be useful?

Member Avatar for lookof2day
0
332
Member Avatar for Grub

You'll need to use a formatter like DecimalFormat or String.format().[code=java] float value = 0.60f; DecimalFormat df = new DecimalFormat("0.00"); String formattedValue = df.format(value);[/code]

Member Avatar for Grub
0
87
Member Avatar for chetah

Yep, as masijade pointed out, if the compiler sees that you have an execution path that could lead to a variable being used before an assignment has been made (as in your "if" clause above), it will warn you of that. If you assign a default value when you declare …

Member Avatar for Jishnu
0
82
Member Avatar for ronghel
Re: help

Certainly... and you have even been told how to go about it right here in your other thread: [url]http://www.daniweb.com/forums/thread97476.html[/url]

Member Avatar for Ezzaral
0
90
Member Avatar for davemcgrath

You'll just need to add a mouse listener to the frame, from which you can get the x and y coords clicked, and create your GeneralPath or Polygon ([url]http://java.sun.com/javase/6/docs/api/java/awt/Polygon.html)[/url] from the clicked points.

Member Avatar for Ezzaral
0
82
Member Avatar for hanmark

[QUOTE=vmanes;475078]If your group is too Politically Correct, yes, it can vapor lock and get nothing done.[/QUOTE] Ok, back to Diversity Training for you! Guards, take this dissenter!

Member Avatar for ithelp
0
83
Member Avatar for Salem
Member Avatar for sagedavis

try [code]$sql = "SELECT * FROM 'profile' WHERE ip = '".mysql_real_escape_string($_Get[ip])."'";[/code]

Member Avatar for sagedavis
0
156
Member Avatar for scru

You are all forgetting the most important reason that the strike must end soon. If the masses are not pacified with the mindless drivel on the shiny screen, they may actually begin to look around them and take an active interest in things the church and state prefer they ignore. …

Member Avatar for scru
0
122
Member Avatar for ronghel
Member Avatar for Ezzaral
0
280
Member Avatar for Grub
Member Avatar for adityav

[QUOTE=PeterCharles;474467]I ended up using this ... fout = new FileOutputStream ("c:\\afmd.tmp"); new PrintStream(fout).println ("xxBL," + textBL.getText()); new PrintStream(fout).println ("xxBA," + textBA.getText());[/QUOTE] You do not need to create a new PrintStream for each call.

Member Avatar for PeterCharles
0
614
Member Avatar for lasher511

[quote=joshSCH;463353]Perhaps you should just go kill yourself because you obviously know nothing about physics at all. You are an idiot, and the world would be a much better place without you.[/quote] Jeez Josh, forget to take your meds? Do you really think this is warranted over a disagreement in a …

Member Avatar for hopalongcassidy
1
832
Member Avatar for Loyen

>these programming languages would be like everyday english I don't see why this would be some great advantage to make programming more accessible. Most people can't use "everyday English" properly either.

Member Avatar for Narue
0
214
Member Avatar for twomers

[QUOTE=Ancient Dragon;473717]If you'd use IE7 on Vista you wouldn't have to worry about those annoying popups.[/QUOTE] Probably because they are broke in Vista - like everything else :P

Member Avatar for jwenting
0
113
Member Avatar for ithelp

[quote=ithelp;465358]If at any world the concept of time does not exist, can we ever develop a software or hardware which can communicate with a world where time does not exist ? I mean to say can we write hardware or software which does not assume anything about time ?[/quote] You …

Member Avatar for MidiMagic
0
162
Member Avatar for rayxu88
Member Avatar for HeroOfTime

Try this as a starting point[code=java] import java.awt.geom.Rectangle2D; import javax.swing.JFrame; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.Random; import java.util.ArrayList; public class Fractal extends JPanel { private int[] triangle01 = {150, 300, 150}; private int[] triangle02 = {300, 300, 150}; Random gen = new Random(); ArrayList<Point> dots = new ArrayList<Point>(); …

Member Avatar for HeroOfTime
0
151
Member Avatar for Krimi
Member Avatar for ITAutobot25

File.mkdir() or File.mkdirs() is what you need to use. edit: s.o.s. beat me to the post :) The only issue there is that it is not using exception handling to create the directory. Personally, I think that is the better way to do it, but his assignment requires it to …

Member Avatar for masijade
0
200
Member Avatar for kwadders

There are a ton of Java tutorials to be found at [url]http://java.sun.com/docs/books/tutorial/[/url] and through Google. A good free online book can be found here: [url]http://www.faqs.org/docs/think_java/TIJ3_c.htm[/url]

Member Avatar for kwadders
0
91
Member Avatar for Kob0724
Member Avatar for nikolaos

You could just iterate the available roots from [icode]File.listRoots()[/icode] and check [icode]exists()[/icode] to find it for them, since you know the file name you are looking for.

Member Avatar for Ezzaral
0
136
Member Avatar for gjr1829

According to the code that you posted, it was due in September of last year and it describes a Box. I don't think you'll get much credit for this assignment.

Member Avatar for Ezzaral
0
516
Member Avatar for diamond_2b1

Actually, you give him more credit than is due. He isn't even asking a question - just reposting a piece of the original post. He seems to have done that in a lot of other threads as well. He just reposts a random piece of what someone else posted, adding …

Member Avatar for Ancient Dragon
0
153
Member Avatar for The Dude

[QUOTE=lasher511;469966]Hena tattoos are for wimps who cant handle the commitment of a real tattoo[/QUOTE] ++ :) (Heh, I got the henna quiz result too. It looks nothing like my real one though :P )

Member Avatar for GrimJack
0
164
Member Avatar for Grub

It depends on what you expect from the system. If you go the most simplistic route, you assume that the machine has a limitless supply of change in all denominations. In that case, you only need to keep the total amount entered. To make change you just use division and …

Member Avatar for Ezzaral
0
91
Member Avatar for alexasmith

Are you sure you have compiled it after recent changes? You program worked just fine for me. I was able to enter the number of elements that I had set ARRAY1 to hold with no errors.

Member Avatar for alexasmith
0
173
Member Avatar for vsr

Try asking over in the javascript forum. This is the Java (programming language) forum.

Member Avatar for ~s.o.s~
0
200
Member Avatar for parthiban

This link may be useful as well for JDBC with SQL Server: [url]http://support.microsoft.com/kb/313100[/url]

Member Avatar for Ezzaral
0
98
Member Avatar for volscolts16

[QUOTE=vigneshvh;470335]... try it[/QUOTE] You mean try converting it to Java, since that is the language he is using?

Member Avatar for mohanrobin
0
157
Member Avatar for cat8882

For one, you have an extra right parenthesis after the "c". Why are you multiplying by each average by c though?

Member Avatar for Ezzaral
0
167
Member Avatar for NotThereAnymore

They aren't recognizing the constructors because you have not written them. You have a single constructor available which takes 4 float parameters. If you need others then you will need to write them.

Member Avatar for Ezzaral
0
102
Member Avatar for snitch321

Look over the following if you need to use Canvas: [url]http://mindprod.com/jgloss/canvas.html[/url] I would also recommend this tutorial as well: [url]http://java.sun.com/docs/books/tutorial/2d/index.html[/url]

Member Avatar for Ezzaral
0
38
Member Avatar for leroi green
Member Avatar for squall2463

[QUOTE=RedQueen;469109]...Where would that be located??[/QUOTE] Umm, in the Integer class API docs as stated?

Member Avatar for squall2463
0
106
Member Avatar for enes

Try looking through this example: [url]http://www.jsresources.org/examples/ClipPlayer.html[/url]

Member Avatar for Ezzaral
0
46
Member Avatar for Enriel10

You might take a look at this example app as a starting point: [url]http://www.jsresources.org/examples/AudioConcat.html[/url]

Member Avatar for Ezzaral
0
42
Member Avatar for killahb101

A professor actually gave you that case structure?? Perhaps he needs to read a chapter or two ahead of the class and brush up on his comparison operators.

Member Avatar for Ezzaral
0
62
Member Avatar for clm

Honestly, employers will not want to see your homework as part of a job interview. Unless you have specific intern experience they will expect you to come out like all of the other CS grads with a lot of theoretical knowledge and very little idea how to apply it to …

Member Avatar for Ezzaral
0
97
Member Avatar for shaqnolysis

Please use code tags when you post code. Reposting it for you here with tags and formatting, but it still will not compile as you have posted it. You mangled the class definitions by embedding them haphazardly in one another. [code=java]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Layers // …

Member Avatar for shaqnolysis
0
151
Member Avatar for HLA91

If you are just learning, why are you concerned with the need for the .NET environment? Learn to program before worrying about distribution issues. C++ is not dying out. There is still a lot of work available. Again, not an issue to be concerned with when you are just starting …

Member Avatar for HLA91
0
152
Member Avatar for dantheman3141
Member Avatar for dantheman3141
0
77
Member Avatar for Java_P

The End.