- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
27 Posted Topics
| |
I am working on an phone book class, and I have to have the Phone numbers, which have a name and address in an order list(linked). But I have to sort by phone nnumber, not by name...I have been trying to think of ways to sort the phone numbers. So … | |
Hey a question, In my .sh, I've use a solve command, which solves a problem and output it to the terminal. But I need away to save the output into a txt file, to parse through it.... The solve command output first line is Satisfiable or Unsatisfiable and then the … | |
Okay I am working on a quick Shortest Job first algorithm and ran into a problem. I can't figure a way to implement, each way I try I get the wrong next process. [CODE]private static int lowTIme(ArrayList<Process> testProcesss, int currTime) { int i; int temp = testProcesss.get(0).getcpuTime(); for(i = 1; … | |
Re: Your gonna have to make some sort of attempt here, no will really give you all the code you need. | |
Hey guys, Whenever I load up Eclipse it is really slow when I start type code. This is what happens, I'll load up eclipse, and when I make a new Java Project, it takes about 30 seconds to create it. When I want to start righting code, it freeze on … ![]() | |
Re: Question, if you don't know who to code, why do you need to do this? | |
Re: Your code works fine, the gui output the 8x8 board correctly. So whats the problem? You wanna make so that a user will click on a panel and a circle will appear on it? | |
Re: Your JMenuBar method is working properly it's just for the wrong JFrame, you have two. The one you created and the one by inheritance. You dont need the extends JFrame since you created your own JFrame. So make boardFrame.setJMenuBar(....) When creating the menu bar have boardFrame.setJMenuBar(...) [CODE] public Board() { … | |
Re: Do you have a main method to run the class math tutor? or are you asking why you need a main method. You need a main method to run the class, like in the class Math Tutor, have a method Run(), that runs through the whole program. I wanted to … | |
Hey I want to simulate a knight moving in my Knight Tour Gui, this is the display code, the moves are stored in the arraylist moves. [CODE] public void display() { for(int i = 0; i < moves.size(); i++) { //Gets the correct button JButton button = square.get(moves.indexOf(i+1)); button.setText("" + … | |
Re: You have inti it should be int. and 1<=a should be i<=a, and I rearranged the braces as well. [CODE] for (inti=1;1<=a;i++) { fact=fact*i; } System.out.println(fact); [/CODE] this is what it should be: [CODE] for (int i = 1; i <=a; i++) { fact=fact*i; } System.out.println(fact); [/CODE] | |
Re: It's this right here [CODE] for ( i = 2; i <= root; i++) { for(int j=0; j<= 5;j++) { if (number % i == 0) { return false; } } System.out.println(); } [/CODE] get rid of the [CODE]System.out.println();[/CODE] It's makes a newline every time the second loops finishes. | |
Hey everyone... Well I am sorting items based upon a number. My first case is if tail == null, if so that the first element to be added in the list. My second case is if the element I want to add number is greater than the tail. If so … | |
I am currently building a Polynomial linked list. Classes [B]Node[/B], that has a Term and a Node next. [url]http://www.boomica.com/Node.java[/url] [B]Term[/B] with a coefficient and exponent. [url]http://www.boomica.com/Term.java[/url] [B]Polynomial[/B] [url]http://www.boomica.com/Polynomial.java[/url] [CODE]public void addTerm(Term nomial) { Node temp = first; Node toAdd; if(isEmpty() || (temp.getTerm().compareTo(nomial) <= 0)) { Node newFirst = new Node(nomial, … | |
| |
Re: Your for loop in your grams and mass method need a conditional, like counter < gravity.length In your grams method you dont have gravity as an @parem. In you pounds method, you return an double but the method is an int. For your Exception you need to import the java.io.*; … | |
Re: You need this import [CODE] import java.util.Comparator;[/CODE] Then you need to implment this method, you dont have to use it but since your implementing Comparator, you need to implement all the methods in Comparator. [CODE]@Override public int compare(Object arg0, Object arg1) { // TODO Auto-generated method stub return 0; }[/CODE] | |
Re: [CODE][B]publiemc [/B]class ExamPractise[/CODE] Make it public And: [CODE]if (c !=' '||c!='?'||c!='.'||[B]c!=')[/B] { countCharacters++; }[/CODE] ^What do you wanna c not to be there? Should be find after that. ----- And I checked out the program, it still counts for spaces and punctuation. [B]EDIT AGAIN[/B] Since your counting the characters you … | |
Re: [QUOTE=ZER09;1021282]i asked for a sample code because i want some example so that I have a reference and I can creat my own.[/QUOTE] You should of tried coding the applet first and post what you can do...then ask for assistance. | |
Hey Guys, I am working on a BlackJack GUI, I have just about everything set up, and now I am working on generating the cards. I was doing some quick snippet test, to see if I can get it working. But no luck, I wanted to know if I can … | |
Re: [url]http://www.daniweb.com/forums/thread222913.html[/url] | |
I have the log file blackjacksample.txt $10000 3 [2H, 4C, KC, 5D] $10 [QS, QD] $5 [AC, 3C, 4D] $25 [10H, 5C, 7H] [7C, 5C, 10H] $20 [JH, 3C, 8H] $15 [3H, 6D, JC] $5 [AH, KH] [9C, JS] $40 [5C, 7H, 3D, KS] $30 [9C, 10D] $50 [AD, 10C] … | |
You guys know of a good Java Ide? I have tried Netbeans and Eclipse but its slow. Loading the programs up takes about 5-7 minutes, and when I type. It freezes and 15-25 seconds later it show it on the screen. I need something better....Any ideas? | |
Re: MasterGoGo for the first, since WindowListener is an interface. And [B]DesktopEEG [/B] implements that interface , you'll need to implement the seven methods in WindowListener. [url]http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/WindowListener.html[/url] As for the second eclipse and netbeans run really slow for me so I will have to edit this post or post later. But … | |
I am new on the board found the site while I was searching for some MIPS article/help on google. | |
I cant check if this is write as I have to do it at school. But I wanted to know if you can read over for me. This is my multiplication [CODE] add $s2, $zero, $zero add $t0, $zero, $zero LOOP: beq $t0, $s0, EXIT add $s2, $s1, $s2 addi … |
The End.