Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #1K

27 Posted Topics

Member Avatar for girl.java
Member Avatar for .11

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 …

Member Avatar for bigdognec
0
763
Member Avatar for .11

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 …

0
51
Member Avatar for .11

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; …

Member Avatar for .11
0
155
Member Avatar for ilupilu

Your gonna have to make some sort of attempt here, no will really give you all the code you need.

Member Avatar for javaAddict
0
83
Member Avatar for .11

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 …

Member Avatar for nileshgr
0
116
Member Avatar for gilianz
Member Avatar for .11
-1
75
Member Avatar for Xav123

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?

Member Avatar for .11
0
101
Member Avatar for Pd123

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() { …

Member Avatar for .11
0
596
Member Avatar for LucarioWill

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 …

Member Avatar for LucarioWill
0
3K
Member Avatar for .11

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("" + …

Member Avatar for adams161
0
103
Member Avatar for dorotalp91

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]

Member Avatar for dorotalp91
0
163
Member Avatar for leoeroy

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.

Member Avatar for leoeroy
0
139
Member Avatar for .11

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 …

Member Avatar for .11
0
130
Member Avatar for .11

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, …

Member Avatar for .11
0
793
Member Avatar for Gman36
Member Avatar for gibson.nathan

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.*; …

Member Avatar for ieshoes
0
191
Member Avatar for nateuni

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]

Member Avatar for nateuni
0
96
Member Avatar for chengeto

[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 …

Member Avatar for ~s.o.s~
0
166
Member Avatar for ZER09

[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.

Member Avatar for .11
0
79
Member Avatar for .11

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 …

Member Avatar for .11
0
130
Member Avatar for jay1992
Member Avatar for .11
0
46
Member Avatar for .11

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] …

Member Avatar for .11
0
113
Member Avatar for .11

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?

Member Avatar for ~s.o.s~
0
165
Member Avatar for MasterGoGo

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 …

Member Avatar for MasterGoGo
0
211
Member Avatar for .11

I am new on the board found the site while I was searching for some MIPS article/help on google.

Member Avatar for pengiranijam
0
38
Member Avatar for .11

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 …

Member Avatar for .11
0
125

The End.