- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
For my program I am working with simple graphics and need to display a straight row of squares from left to right decreasing in size. I also have to program this recursively so that it makes the squares following the first one by itself. My problem right now is that … | |
I am trying to make a row of decreasing squares with a recursive method, but none of the squares comes up besides the first one. Any ideas where my code is going wrong? [CODE] import java.awt.*; import java.awt.event.*; import java.util.Random; public class Lab19ast { public static void main(String args[]) { … | |
I must be overlooking something simple here, but I have no clue why it says that it is going out of bounds. Here is my entire program... [CODE]import java.util.Scanner; import java.util.Random; public class MadLib { static Scanner input = new Scanner(System.in); static Random rng = new Random(); static String t[] … | |
I have my code and it compiles, and makes sense to me, but I must have something wrong because it only puts out 0's on everything except 1. There is something I am missing, and I don't see it yet. [CODE]import java.util.Scanner; public class MyBestFreon { static int max; static … | |
I have been trying to create a program that outputs four arrays created with random ints doubles chars and booleans. It will compile but when I run still gives me the same variables which have nothing to do with my input at all, but my char array works perfectly. [CODE]import … |