1,034 Posted Topics

Member Avatar for EvilObsidian

You have to precede the method call with a reference to the Complex class. I made the ComplexMath method static, and called it using the dot operator. [Code] import javax.swing.JOptionPane; public class Complex { public static void main( String args[] ) { ComplexNumber firstComplexNumber = new ComplexNumber(); ComplexNumber secondComplexNumber = …

Member Avatar for server_crash
0
127
Member Avatar for catherine1001

Is OCP the Oracle cert? I kind of like this site: [url]http://smartcertifydirect.com/[/url] I've never used it, but if I had to do an online cert course, it would probably be that.

Member Avatar for server_crash
0
84
Member Avatar for dlh6213
Member Avatar for JJ___
0
425
Member Avatar for The Unreal Wolf

[QUOTE=The Unreal Wolf]its preventing him from reaching this site [/QUOTE] Duh, they block all dirty content.

Member Avatar for The Unreal Wolf
0
179
Member Avatar for moonduke

If you put code tags around your code I could help you more. Untill then, take a look at the java.util.zip API. An easy way to compress a String is replace characters with multiple occurences with a number representation of the occurences, and then the letter.

Member Avatar for Phaelax
0
223
Member Avatar for bob901
Member Avatar for server_crash

I've been working on this project and I've had to look at a bunch of code, and go through many tutorials. One thing I've consistently noticed is that the programmer checks to make sure the current thread (Thread.currentThread()) is equal to the one they created in the class constructor. Now, …

0
59
Member Avatar for markymarkb1000

If producer is static, then you shouldn't be calling it using the new keyword. It should be, ClassName.methodName(). I would have thought that would cause a "non static method being called from a static context" error though. Since that wasn't your error, then it could be that your method signature …

Member Avatar for server_crash
0
144
Member Avatar for belama

Someone gave me some negative rep for making a suggestion that they should've listened to. They wrote: "servercrash was harsh and arrogant".... I thought that was pretty funny though.

Member Avatar for belama
0
684
Member Avatar for bob901

The java.sun.com site is a great one. This is my favorite, I went through all of them and they are great: [url]http://chortle.ccsu.ctstateu.edu/CS151/cs151java.html[/url]

Member Avatar for bob901
0
144
Member Avatar for bob901

I know how. It depends on what you have encrypted. If you don't know the encryption scheme then you've got some work ahead of you. Take the ceaser cypher for instance, to reverse the working of that, you simply do something like this: [Code] public String shiftBack(String text) { long …

Member Avatar for bob901
0
192
Member Avatar for zeroth

I don't get it. They sue people for downloading songs which cost 1$ a piece, but there is server software on P2P networks worth 6-10,000$.

Member Avatar for Catweazle
1
2K
Member Avatar for bob901

I can tell you how to get rid of the problems, but the program wont do anything. I don't like the coding style you've used, no offense. If I were going to write that, I would do something like this: [Code] public class Invaders extends JFrame { public Invaders() { …

Member Avatar for server_crash
0
106
Member Avatar for stupidenator

I'm taking it too. I'm not worried about anything but the Marine Bio case study. I haven't even looked at it. :eek:

Member Avatar for server_crash
0
278
Member Avatar for luisator
Member Avatar for Evenbit
Member Avatar for DJG
0
394
Member Avatar for server_crash

I can't get this code to compile, and I'm really pissed....Someone please help: [Code] import java.io.*; import java.util.*; import static java.util.concurrent.TimeUnit.*; public class ScheduleTester { public static void main(String[] args) { /** Get a scheduler **/ ScheduledExecutorServer scheduler = Executors.newSingleThreadScheduledExecutor(); /** Get a handle, starting now, with a 10 second …

0
75
Member Avatar for Dark_Omen

I've got a creative nomad, and I love it. The Dell DJ's don't look bad though, but do you really need all that space?

Member Avatar for Dark_Omen
0
315
Member Avatar for Dark_Omen
Member Avatar for SSSBoy
Member Avatar for vex
Re: Java

I like JEdit. If you were talking about the sdk, 1.4 I THINK is the widest used.

Member Avatar for miri
0
265
Member Avatar for Euraznsensation

If you've never done one before, a good place to start is Yahoo!'s geocities. They offer easy to use tools for creating web pages. Plus they are free up to a certain extent.

Member Avatar for nanosani
0
99
Member Avatar for Ghost

I doubt it. I'm sure that they got protection against something like that, because otherwise there would already be hundreds of password cracking programs out there that constantly tried differen't combinations of password. Maybe I'm wrong, but I still don't think it's possible.

Member Avatar for paradox814
0
234
Member Avatar for server_crash

This is kind of a weird senario. This question was at the java state championship I was at a few weeks ago. Here was the question: Which type of class cannot be instantiated: abstract static (choices I can't remember..they were wrong) Would both abstract and static be correct answers? I've …

Member Avatar for server_crash
0
1K
Member Avatar for Harvester

Here's a guidline: [Code] StringTokenizer st = new StringTokenizer(file.readABuchofStuff); ArrayList al = new ArrayList(); while (st.hasMoreTokens()) { StringBuffer sb = new StringBuffer(st.nextToken()); al.add(sb.toString()); } [/Code] Not very complete, but it should get you going. Basicly, just use a while look that stop when no tokens are left.

Member Avatar for Harvester
0
153
Member Avatar for JGee

If you can learn all you need to know to do that in three weeks, I will be impressed.

Member Avatar for dakkar
0
199
Member Avatar for bob901
Member Avatar for nabil1983

[QUOTE=nabil1983]Does ne one know how to answer this question? [/QUOTE] Yes. Question answered.

Member Avatar for paradox814
0
285
Member Avatar for nabil1983
Member Avatar for phantomlady

If your just trying to link from one page to the other, couldn't you just use the anchor tag to link to a page with the large image? Or are you talking about creating that page only when needed?

Member Avatar for phantomlady
0
146
Member Avatar for Blaminator
Member Avatar for Blaminator
0
126
Member Avatar for server_crash

Does anyone know of a site that will allow you to get free stock feeds into your program?

0
93
Member Avatar for ultimate_fusion

I don't think you can differentiate between different data types using a StringTokenizer. You would have to use a StringBuffer to hold all the stuff and then do some parsing. Although a StringTokenizer doesn't differentiate, a StreamTokenizer does. It can distinquish between Strings, ints, and all that good stuff.

Member Avatar for server_crash
0
605
Member Avatar for macassist

I don't know of any voice recognition software that doesn't require the training of your voice.

Member Avatar for server_crash
0
23
Member Avatar for OverDoser
Re: Hey

Yes, but I wouldn't wait till college to start learninng programming.

Member Avatar for OverDoser
0
139
Member Avatar for ultimate_fusion
Member Avatar for server_crash
0
184
Member Avatar for luisator

If your using the command line you either don't have your classpath set, or it's not in the folder the classpath is set to. If your using an IDE it's probably not residing in the right folder.

Member Avatar for server_crash
0
139
Member Avatar for Black Knight

I don't think you would have to use loops to continously check to see if it's true. I think you could just use some simple if statements or something simple to check if it's true. Paradox has a neat solution to it..Have a method that makes it true, and also …

Member Avatar for Black Knight
0
169
Member Avatar for oberle1515

[QUOTE=nicentral]What do you want to know about parameters? They're basically variables set up in the method declaration that allow you to pass values to the method. If your method is to return something, you would need a return statement. I.e. your method should look like this public static int difference(int …

Member Avatar for paradox814
0
147
Member Avatar for server_crash

I know you can use j2me for programming on palm pilots and PDA's...At least I think! My question is, does it matter what make/model/ or specs the PDA has to be able to program on it, or be compatible with j2me?

Member Avatar for server_crash
0
149
Member Avatar for server_crash

I'm suppose to have recieved 75$ to my paypal account like two weeks ago. I never looked at my account until yesterday. I know for a FACT that the money was paid, and paid to the right email address, but my paypal balance says 0.0$. It shows that there has …

Member Avatar for server_crash
0
182
Member Avatar for sam1

You can dual boot. It's really easy, just create another partition while installing the linux distro.

Member Avatar for amos
0
204
Member Avatar for stupidenator
Member Avatar for jwenting
0
185
Member Avatar for server_crash

I have an application that has a fractal already drawn, but I have three JSliders that allow the user to zoom in out, shift the x axis, and shift the y axis. I think it's plotting around 160,000 points, and the refresh is quit noticible. I was wondering if there …

Member Avatar for server_crash
0
207
Member Avatar for ultimate_fusion

First of all, that wont work..Plus the array would be indexed out of bounds if it did. What are you trying to do with the chars? If I knew, I could give you some better code: [Code] JButton[] myButtons = new JButton[10]; char mine = '*'; for (int i=0; i<myButtons.length; …

Member Avatar for server_crash
0
135
Member Avatar for Gink

Decompile it. I believe you can download some decompilers but I can't recommend any, because I've never done this..

Member Avatar for paradox814
0
138
Member Avatar for jengels
Member Avatar for grifflyn

I thought the Vector data structure was old, but I could be wrong. If there is a solution that could be done in ArrayList or Vector form, I would probably choose ArrayList.

Member Avatar for jwenting
0
162
Member Avatar for server_crash

I started reading this old book about jsp, and I'm having a few problems getting started. First of all, it says that I need to set these environment variables: Java_HOME, and J2EE_HOME. I don't see those, and I don't think their is a need for them, but I can't get …

Member Avatar for server_crash
0
193
Member Avatar for peterb92

You can do it, but this is a Java forum...Not a JavaScript forum. If you were to do it in Java and show a little work, I would help you.

Member Avatar for peterb92
0
119

The End.