n*(n+1)'s Profile User Rating: -----

Reputation: 0 Apprentice
Active Posts:
35 (0.04 per day)
13-September 13
Profile Views:
Last Active:
User is offline Apr 06 2015 07:42 PM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
Icon   n*(n+1) has not set their status

Posts I've Made

  1. In Topic: Int[] Array of zeros and ones as a single hex value

    Posted 6 Apr 2015

    Yeah, I agree about the bitwise operators. I'm taking a class in which we need to do write a CRC program and everything I find on the subject involves bitwise operations. So, I'll have to get on that. Appreciate the help!
  2. In Topic: File Read, String Builder Length

    Posted 4 Apr 2015

    Haha, that's fine. I was sitting there scratching my head about the newline thing. Yes, that works perfectly. Much appreciated!
  3. In Topic: File Read, String Builder Length

    Posted 4 Apr 2015

    Won't that always return false as Java doesn't define '\n' as white space? I'm not sure how I would use that.

    I want to confirm whether I'm understanding what is going on here. Is it that there are 512 characters, but the code doesn't print/show seven newline characters?
  4. In Topic: File Read, String Builder Length

    Posted 4 Apr 2015

    Ahh, I see what you're saying. That would explain why seven "." characters are "missing" from what I expected. Yes, that's what I'm going for. Will regex help with that?

    EDIT: Perhaps I'm not entirely sure what you mean

    I'm basically trying to print out 512 characters for my output. For an input file containing the string "Testing123", my reasoning is that the amount of "." chars printed would be 512 - (the 10 characters that comprise the string "Testing123").
  5. In Topic: Strtok & Null Checking

    Posted 2 Mar 2015

    Yes, I've read that. This is my understanding: The first call tokenizes the first string up to my delimiter ",". A null character replaces my comma. The second call tokenizes the string between the null pointer (beginning at \0) and the next delimiter (","). The third call does the same. This process repeats for the second and third lines. By the fourth line, the method begins returning null because it is not finding anymore delimiters. This is the reason many people use a while token != NULL to tokenize a string.

    The reason I asked about the code above is because it was in a sample provided by a Professor. If my understanding of strtok is correct, it shouldn't work. I was just wondering if I was missing something or is the approach incorrect?

My Information

Member Title:
New D.I.C Head
Age Unknown
Birthday Unknown

Contact Information



n*(n+1) hasn't added any friends yet.


n*(n+1) has no profile comments yet. Why not say hello?