DimitriV's Profile User Rating: ****-

Reputation: 585 Enlightened
Active Posts:
2,748 (2 per day)
24-July 11
Profile Views:
Last Active:
User is offline Apr 07 2015 10:24 PM

Previous Fields

OS Preference:
Favorite Browser:
Who Cares
Favorite Processor:
Favorite Gaming Platform:
Your Car:
Who Cares
Dream Kudos:

Latest Visitors

Icon   DimitriV working on a game in Java with libGDX.

Posts I've Made

  1. In Topic: File Not Found Exception Error Question

    Posted 25 Apr 2014

    It's because you're printing a line each time your nested loop runs:
                for(col=0; col<square[row].length; col++)
                    System.out.println("  "+square[row][col]);

    Change that inner line to System.out.print("stuffgoeshere"); and then after the close brace of your innermost for loop, add a System.out.println();.
  2. In Topic: File Not Found Exception Error Question

    Posted 25 Apr 2014

    Your problem lies in this line:

    Because you're passing a primitive type (an int in your case), a copy is made of it so it can be modified in the function. This is passing by value and Java does this with all primitives.
    Take away the int size argument from getSize() and set size to the value returned by getSize(), like so:
    size = getSize();
  3. In Topic: convert string to byte array in c# is changing the value

    Posted 25 Apr 2014

    The reason you are getting this result is because:
    • In ASCII, the code 48 is equivalent to the character 0
    • In ASCII, the code 49 is equivalent to the character 1
    You aren't doing anything wrong in code.
  4. In Topic: Undo option in Jtable

    Posted 24 Apr 2014

    No, don't store the table. As I outlined in my previous post, I would implement a way to store the individual actions that you perform on your table/data.
  5. In Topic: I've just written a program to convert temperature. Need help!

    Posted 24 Apr 2014


    1st is why won't I get an output from my program when I run it?

    This is because you only call System.out.println() in the functions CToF and FToC, which you don't call in your code.


    2nd is how do I prompt for input using the Input class methods downloaded?

    I'm confused… you've got a Scanner declared in your code. Are you using that? Or aren't you?

My Information

Member Title:
They don't think it be like it is, but it do
16 years old
May 24, 1998
Programming Languages:
Java, some C++.

Contact Information