I wigged and I wagged....here's the finished code, so when someone asks How do I compare a generic node with a generic object you can refer them to this post.
public class ListNode<T> implements...
Type: Posts; User: Sfrius
I wigged and I wagged....here's the finished code, so when someone asks How do I compare a generic node with a generic object you can refer them to this post.
public class ListNode<T> implements...
Hey I just saw you replied.
I received no input/help and I gave up.
The original code I started with is posted.
The method inside that code called insertSort() is the method I'm trying to add.
I...
Managed to find this post from 18 months ago. http://www.javaprogrammingforums.com/whats-wrong-my-code/24615-sort-merge-two-linked-list.html
I'm not really sure this person had their questions...
I think I was pretty precise.
And I pretty much said all this the first time but heres another go at it.
In the second example I even showed you how I tried to implement a comparable interface...
I really hate linkedlists. I've been stairing at this code for 3 days now and I can't seem to create a insertSort method. It has an insertFromBack and insertFromFront.
I'm trying to make a method...
Norm what the heck! :P That worked perfectly. Funny rule.....
I'm just wondering what is wrong with this? All it needs to do is calculate farenheight from celcius upon pressing the enter key. It's displaying the entered temp but it's not displaying the...
Finally, I see the error of my logic, thanks for talking me through that one...:P
each total[][]++ has to have the first and second bracket manually. why I put i in there..I don't know.
---...
Norm does it have anything to do with the way it's declared?
I mean if it was a three dimensional it would be double[][][] array = {{{0,5}, {0, 6}}, etc};
You would access the variables in...
It doesn't need to find it. Both for loops start at position 0 and end at array.length. Temp and the if statements determine what counter variable needs to be added too. I don't see anything wrong...
Ok, I might have explained my problem very poorly. I have been working with java for 2 years, I don't usually change the values in an array. For this instance, I am....But it won't work....Arrays in...
The sales array holds 9 different sales of 9 employees.
The total array holds {counter, forAmount}
array at[0][select 0 or 1] 0 for counter 1 for amount.
so if i say total[0][0] It's...
No, the program compiles if you would like to view the error. The current output is.
$200.0-299.0 1
$300.0-399.0 1
$400.0-499.0 1
$500.0-599.0 1
$600.0-699.0 1...
The code compiles with no errors. It's not tabulating correctly.
All I want to do is figure out how much each employee made, tabulate the count and then display the count. I'm not sure what's going...
I realize this is an old post but my question is exactly the same. I read through this post and "Just think of mathematics" is not enough help for me.
All I want to do is figure out how much each...
Thanks norm. Lol Greg, have you ever read a word you didn't know the meaning to and it drives you insane until you figure out what it means? :P
There were so many newbie questions about scanner it...
public static Scanner input = new Scanner(System.in);
then in whatever class you want Driver.input.nextInt(); <--or nextDouble Float Line whatever
Less code, no confusion, 100% of garbage...
Yea sorry I just wrote it and the forum doesn't act like a compiler. I can't install anything on the computer I'm using.
I have a lot of user input, and I want to divide and conquer. I want to seperate input and use void methods to take in user data and use return methods in the class to do some calculations with this...
Ok ok...give me 5 minutes....
--- Update ---
import java.util.Scanner;
class javaForum{
static final int SENTINEL = -1;
public static void main(String[] args){
There is no code to write. It's just a question about scanner method close.
--- Update ---
It's one of those things you either know or you don't.
Like I said, I don't need luck, my programs...
LOL???
CLASS DRIVER
MAIN
SCANNER input INITIALIZED
MENU - ENTER CHOICE
REPITITIOUS MENU LOOP{ CHOICE != SENTINEL
OPTION();
OPTION2();
Ok, I have this question that involves the Scanner class. Basically, when you want to perform garbage collection and there is a scanner object. You type scannerobject.close(); in your final clause. ...