1,034 Posted Topics
Re: 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 = … | |
Re: 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. | |
Re: [QUOTE=The Unreal Wolf]its preventing him from reaching this site [/QUOTE] Duh, they block all dirty content. | |
Re: 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. | |
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, … | |
Re: 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 … | |
Re: 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. | |
Re: 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] | |
Re: 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 … | |
Re: 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$. | |
Re: 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() { … | |
Re: 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: | |
| |
Re: Stephen King is my all time favorite author. I would love to get a legit email from him! | |
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 … | |
Re: 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? | |
Re: I like JEdit. If you were talking about the sdk, 1.4 I THINK is the widest used. | |
Re: 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. | |
Re: 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. | |
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 … | |
Re: 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. | |
Re: If you can learn all you need to know to do that in three weeks, I will be impressed. | |
Re: [QUOTE=nabil1983]Does ne one know how to answer this question? [/QUOTE] Yes. Question answered. | |
Re: More efficent? [Code]Arrays.sort(ArrayName);[/Code] | |
Re: 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? | |
Re: Very wierd. Is this a keyboard and mouse duo you bought seperately from your PC? | |
Does anyone know of a site that will allow you to get free stock feeds into your program? | |
Re: 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. | |
Re: I don't know of any voice recognition software that doesn't require the training of your voice. | |
| |
Re: I think you would have to download the J2ME software development kit. | |
Re: 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. | |
Re: 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 … | |
Re: [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 … | |
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? | |
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 … | |
Re: You can dual boot. It's really easy, just create another partition while installing the linux distro. | |
Re: You can make executable JAR files, but I've always had trouble. | |
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 … | |
Re: 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; … | |
Re: Decompile it. I believe you can download some decompilers but I can't recommend any, because I've never done this.. | |
Re: Scanner.nextLine() is a String, NOT a char. | |
Re: 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. | |
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 … | |
Re: 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. |
The End.