Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Nim

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    7,139

    Re: Finding Duplicate Files

    Yeah I did that with FileInputStream.read() and it took a lot longer. I mean, i exited the command prompt because I was tired of waiting.
  2. Replies
    9
    Views
    7,139

    Re: Finding Duplicate Files

    I added the paragraph below my code the minute you posted, in case you didn't catch that. I'm willing to bet that what I've described is in the API. I tried using FileInputStream.read(), but it takes...
  3. Replies
    9
    Views
    7,139

    Finding Duplicate Files

    Is there an easier way to find duplicate files?



    import java.io.*;
    public class Test {
    public static void main(String[] args) throws Throwable {
    System.out.print(duplicate(new...
  4. Three Objects involved, but obj1.compareTo(obj2) is binary

    Imagine three objects with coordinates on a grid. I must compare the distance of object 1 and object 2 to object 3 with the distance formula. compareTo does not allow me to do with, mates. I need to...
  5. Re: Need advice on how to create LinkedListIterator as an external class

    In the interest of time, I ended up deciding that the code I posted was fine and that the teacher WAS talking about generics when she said "it should iterate through any list" (meaning any-typed...
  6. Re: Need advice on how to create LinkedListIterator as an external class

    Ok I understand. We called this the circularly-,doubly-linked list. It does get rid of the end node, so I'm gonna implement it because I'm a stickler for efficient code. But it still doesn't help me...
  7. Need advice on how to create LinkedListIterator as an external class

    I have three files: Node.java, LinkedList.java, and LinkedListIterator.java. I will try to condense the presentation by omitting the junk inside routine methods, except the ones on which I want...
  8. Thread: search and match

    by Nim
    Replies
    11
    Views
    1,386

    Re: search and match

    Sorry, I actually didn't read this paragraph. Kinda hasty. Ok, I have a Thinkpad x61. WinKey+Pause/Break says I have 3 GB RAM and a Core 2 Duo at 2 GHz. Also, I'm running Galileo, pretty recent.
    ...
  9. Re: flex "flex scanner push-back overflow"

    This is screwed up. I've narrowed the issue down to one line in new_scanner.l:

    EXP {EXP}{SP}("+"|"-"|"*"|"/"){SP}{VAL}|{VAL}
    I ruled it further down to the recursive definition! I don't...
  10. [RESOLVED] flex "flex scanner push-back overflow"

    flex is happy when i run "flex scanner.l", but returns the error "flex scanner push-back overflow" when i run "flex new_scanner.l"

    here are the files:

    scanner.l:

    /* scanner for a toy...
  11. Re: What is the Typescript command (after Google failed me)

    woooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooow script worked.

    thanks so much.
  12. [RESOLVED] What is the Typescript command (after Google failed me)

    Posting here because it's the only subforum whose description includes Linux, and I'm running Linux...

    I'm accessing a linux account via ssh (putty). I don't think that matters. I'm just using the...
  13. Thread: search and match

    by Nim
    Replies
    11
    Views
    1,386

    Re: search and match

    Will, not ability, is the issue here.
  14. Thread: search and match

    by Nim
    Replies
    11
    Views
    1,386

    Re: search and match

    If you've got the RAM, eclipse really helps. Never click on a class variable that can't be resolved though. Eclipse will freeze for a full minute. You have been warned.
  15. [RESOLVED] What's the best way to write LinkListIterator as an external class

    externalize node class => create constructor with first node as argument.
  16. Replies
    15
    Views
    1,923

    Re: need help with loops plz

    Inefficiency isn't elegant.

    Don't use recursion for the Fibonacci sequence. It's running time is exponential --(3/2)^N. Every CS book that has a chapter on algorithmic analysis tells you this.

    ...
  17. Two Identically Constructed Objects Aren't Equal , And I Don't Know Why

    public class Test {
    public static void main(String[] args) {
    StringByComposition a = new StringByComposition("announce");
    StringByComposition b = new StringByComposition("announce");
    ...
  18. How to clear BufferedReader w/o creating a new instance..

    Run this short program for me:


    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    public class Test {
    public static void main(String[] args) throws Exception {
    ...
  19. Replies
    19
    Views
    9,718

    Re: Writing My Own Operating System

    I love the idea of a separate sleek OS for gaming and graphics. I wish I could read what you have written, but my experience with Assembly is using MIPS for a class, lol...
  20. Replies
    11
    Views
    977

    Re: why do the buttons not show?

    Use the borderlayout manager. The first vertical panel would go in the west. The second would go in the center. The third would go in the east. The last horizontal panel would go in the south (or...
  21. Re: custom hashCode() method outputs integers DIFFERENT than the String class

    That is awesome and exactly what I was looking for thanks!
  22. Re: custom hashCode() method outputs integers DIFFERENT than the String class

    I think it is because of the implicit casting that happens when I add an integer to a double.I will have to implement a more complex loop that deals with numbers larger than 2147483647. I will post...
  23. Replies
    11
    Views
    977

    Re: why do the buttons not show?

    It is because you set the borderlayout of the Frame to null. That effective erases all the components within the layout. Delete that one line and you see the buttons.


    f.setLayout(null);
    ...
  24. Replies
    10
    Views
    814

    Re: stumped on do while loops

    If you don't understand basic syntax of Java, use google; don't use a forum. I'm going to help you anyway...


    A = input.check;

    This is unintelligible. There is no check instance variable...
  25. custom hashCode() method outputs integers DIFFERENT than the String class

    Here is my code; the algorithm is taken from the Java API here


    public int hashCode()
    {
    int code = 0;
    for (int i = 0; i < length; i++) // where length is the length of the string....
Results 1 to 25 of 32
Page 1 of 2 1 2


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center