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

Reputation: 583 Enlightened
Group:
Authors
Active Posts:
2,748 (2.43 per day)
Joined:
24-July 11
Profile Views:
26,775
Last Active:
User is offline Jun 16 2014 02:04 PM
Currently:
Offline

Previous Fields

Country:
AU
OS Preference:
Mac
Favorite Browser:
Who Cares
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
150

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:
    getSize(size);
    
    

    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

    Quote

    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.

    Quote

    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
Age:
16 years old
Birthday:
May 24, 1998
Gender:
Programming Languages:
Java, some C++.

Contact Information

E-mail:
Private