Thanks I fixed that with the line but I still have the problem with changing the
public static final int SIZE = 4; When I change it to public static final int SIZE = 3; or public static final int SIZE = 7; The image is messed up. can someone help me out?
User Profile
Collapse
-
Re-Size Issue
my code works for SIZE 4, but I was trying to get my code to Re-Size in SIZE 3, SIZE 7. If you can look at my "for (int" and let me know what I need to change to get it to work in all three sizes.
...Code:// Figure out math loops for new sizes public class SpaceTest { public static final int SIZE = 4; public static void main(String[] args) { rod(); top(); singleLine(); -
Help With loops, nested loops and constant
I am working on trying to do a image but I am having a hard time figuring out the right steps. plus I wanted to check how to change the overall size do I just add public static final int SIZE = 4;
[CODE=Java]
public class SpaceTest {
public static void main(String[] args) {
rod();
top();
line();
bottom();
rod();
middle();
top();
line();
... -
Thanks for moving it. I haven't learned array's yet but was told I could use call methods and get it down to 13 methods not including the main just not sure what to change....Leave a comment:
-
New to Java with a Static Method Question
I am new to java and I am trying to learn how to to reduce lines of code that are redundant in a simple file I made. I am trying to figure out how to reduce this code down to 13 methods not including the main and reduce any extra lines without using array's
[CODE=java]public class Song {
public static void main(String[] args) {
One();
Two();
Three();
Four();
...
No activity results to display
Show More
Leave a comment: