1,034 Posted Topics
Is there a really simple mod out there for creating subforums? Specifically for 2.0.16 | |
Re: Sounds like a neat problem to do. We aren't allowed to give anyone homework help unless they show some effort. If you do, we will be more than happy to help out. In the mean time, look up synchronizing threads. I've done a problem similar to this where two people … | |
Re: That's some dirty spyware. I had something like that once and it took forever to get it off. I'll try to find out what tools I used and get back to you. | |
Take this situation: A Hospital Database containing information on over 800 employees. Which database software would you use? Is Access just as good as mysql? | |
My question: How important is it to learn and understand sorting algorithms and routines? | |
Re: I think you want javascript. Java can do this, but it's not going to be some script you plug into an html document and it runs. You could use jsp or servlets to EASILY get their ip. By the way, if you just need to find their ip, got to … | |
Re: I would put them into a String, create a String Buffer and then reverse it: int x = 123; String s = x+""; StringBuffer sb = new StringBuffer(s); sb.reverse(); That reverses the String, then you can parse it back to an int. I do have a recursive solution to this, … | |
Re: My Java books: Teach yourself Java 2 in 24 hours --- Good if you want from ground up. Java 2 Primer Plus -- Excellent book. J2ee Core Patterns -- Haven't read it yet Java 1.5, A developers notebook --- Excellent Java 2 Certification -- Excellent Head first servlets and JSP … | |
Re: To create an array of Deck objects, you need to initialize the array with the amount of elements: Deck[] d = new Deck[3]; Then, d[0] = new Deck(); Like that....Let me know if you need a little more information. | |
Re: Use the Random Class. It's more random than Math.random(); [Code] import java.util.*; public class RandomClassTest { public static void main(String[] args) { Random randNumGenerator = new Random(); int[] x = new int[7]; for (int i=0; i<x.length; i++) { x[i] = (randNumGenerator.nextInt(100)+1); } } } [/Code] Be sure to add 1 … | |
| |
Re: [Code] \|||/ (o o) |~~~~ooO~~(_)~~~~~~~| | Please | don't feed the | TROLLS! '~~~~~~~~~~~~~~Ooo~~| |__|__| || || ooO Ooo [/Code] Thanks, Daniweb Troll Management Team. | |
I know it's possible to connect two forums to one database, but I don't know where to change the table prefixes. This is phpBB, by the way. I'm using some kind of web hosting tools, so it didn't give me the opportunity to change the prefixes when I installed it. … | |
Re: Basically it's like he said: look up sockets. The PrintWriter will probably be used, but you have your options open for choosing a Class that will read and write data. Split functionality up as much as you can when writing out the classes. And that's about all I have right … | |
Re: I agree with you to some extent, but most of the usefull technology probably isn't going to wind up in just anyones hands. The reason so much useless crap is coming out, is because people are never happy. If someone asks you how much money you want and you say … | |
Re: Well, none of those are functions in the math class. You can find a list here: [url]http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Math.html[/url] I can help you with a few of those: To get the cube root: Math.pow(base,3); To get log base 10 of X: int answer = Math.log(x)/Math.log(10); To get hypotenuse a little more work … | |
| |
Re: Be prepared to take some time on it. The book by Kathy and Bert took me a LONG time to read! Not that I'm a slow reader, but you just can't zip through something that packed with information. I still don't think I'm ready for it. I've read some parts … | |
Re: I don't really look like the steriotypical geek, so I have no problem in getting girls that look more than descent. | |
Is there a way to validate an email by checking it's existence? | |
Re: [Code] \|||/ (o o) |~~~~ooO~~(_)~~~~~~~| | Please | don't feed the | TROLLS! '~~~~~~~~~~~~~~Ooo~~| |__|__| || || ooO Ooo [/Code] Thanks, Daniweb Troll Management Team. | |
Re: It's your structure. You need a while loop: BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); char c; do { c = (char)br.readLine(); } while (c != 'e'); Something like that. | |
Re: Think it's like he said, it's case sensitive and wants the X capitalized. You can compile without it, but you won't get the warnings. javac ProgramName.java -Xlint | |
Re: You would probably wind up using JNI(think that's the right now), and a lot of other third party api's and such...Just my guess though. | |
Re: It's prefence. As long a you have an String array as the argument, it can have any name, and be "formatted" anyway. public static void main(String[] args) public static void main(String args[]) public static void main(String[] s) public static void main(String s[]) All of those are perfectly legal. Actually as … | |
Take just this simple method from the graphics class: fillOval()....Why is it abstract? Or better yet, where does it become concrete? I know I've never had to create my own implementation of that method. | |
Re: why would you allow the user to enter the path anyway?(not that it's a bad thing) Why can't you use a file browser? | |
Re: I don't think you want JTextFields. Look up JOptionPanes. They give you many options to get input from the user via an input box. | |
Re: Why not start with a simple example that uses nothing but the command line. [Code] class test { public static void main(String[] args) { int grade1 = Integer.parseInt(args[0]); int grade2 = Integer.parseInt(args[1]); int average = (grade1+grade2)/2; System.out.println("average --> " + average); } } [/Code] That will give you some experience … | |
| |
Re: He's seeing double because he's staring at objects too long. I have the same problem, but it's PERFECTLY normal(at least that's what the doctor said).. Now, if he's can't see things far away, get to a doctor. My perscription is 20/500....Now, unless he wants to have eyes that bad, he … | |
Re: [QUOTE=MsEbonee] I don't even know how to begin!!! [/QUOTE] Or do you not want to begin? :eek: | |
Re: How are you compiling this?? are you using the form: javac ProjectName.java to run java ProjectName Have you changed your CLASSPATH variable? | |
[url]http://www.amazon.com/exec/obidos/tg/detail/-/B00017JKEY/sr=1-10/qid=1120812837/ref=sr_1_10/002-5104756-7860846?%5Fencoding=UTF8&n=3600311&s=gourmet-food&v=glance[/url] | |
Re: You need to come up with a formula for calculating the number of spaces to use at the beginning. There is an alternative way by using char arrays, but that is very difficult. | |
Re: You'll have to explain the 1st question a little more. One the second question, if you are using a JTextField to display data, you can set the horizontal alignment. [Code] textField.setHorizontalAlignment(JTextField.CENTER); or .RIGHT or .LEFT or .LEADING or .TRAILING [/Code] | |
I'm trying to make a simple calculator and whenever I want to add text to the textfield(say a number) it will show up, then will dissapear. [Code] function display(number) { var x = document.form1.displayText; x.value = number; } [/Code] This is how I'm doing it, but why is the text … | |
Re: how about the JFrame method: setMinimizable(false); | |
Re: Just in case, here's kindof what he's talking about: [Code] public class Card { private int [] rank= new int [13]; private String [] suit={"Spades","Hearts","Diamonds","Clubs"}; //Not used? public Card() { super(); } public void setRanks(int []rank) { for (int i=1;i<=13;i++) { rank[i]=i; } } public int getRankAt(int index) { return … | |
Re: I would suggest adding one to the end of the generated number or else you wont ever reach 200. | |
Re: It's possible, but I'm not 100% sure. I believe you can it's just you must recall the paintComponent() method in the run method: [Code] g2D.drawLine((fnx1) + 80, (fny1) + 80, (fnx) + 80, (fny) + 80); this.paintComponent(g2D); [/Code] Since the paintComponent is expecting a graphics object, i believe you MIGHT … | |
Re: There is one sure way of knowing: USB 2.0 was introduced in 2001, so if you bought it before then, you don't have 2. You could check the device manager and see if your controllers are enhanced, if so, they're 2.0..If not, buy a PCI card for hardly no money....That … | |
You have to watch these videos. These are some of the most amazing animals I have ever seen: [url]http://www.holylemon.com/GeniusBird.html[/url] [url]http://www.holylemon.com/KarateChimp.html[/url] [url]http://www.holylemon.com/ElephantSoccer.html[/url] | |
I'm trying to create a calculator using the gridbag layout, but I can't even get started. This layout managers keeps starting stuff in the direct center of the frame and wont put anything anywhere else. I tried this: c.anchor = GridBagConstraints.SOUTH; I just can't seem to get this thing working. … | |
Re: If you've had no experience with building and programming pages of that quality I would suggest you start out with geocities. You won't be able to build something of that caliber, but it will be a good experience. geocities.com They offer free hosting and good beginner tools, but again, you … | |
Re: Basicly it comes down to creating a formula to convert your coordinates into screen coordinates. |
The End.