Search:

Type: Posts; User: Twoacross

Search: Search took 0.21 seconds.

  1. Replies
    3
    Views
    1,316

    Re: ArrayList recursion return help

    For the out put it gave me:

    [1]

    [1]

    Where as the output i want to achieve is

    [1]
    [1] [1]
  2. Replies
    3
    Views
    1,316

    ArrayList recursion return help

    Hi Forums! Im in need of some help with two problems im trying to attempt.

    So the first problem im doing is the pascal's triangle using arraylist<integer> but when it prints out, it gives me the...
  3. Replies
    2
    Views
    926

    Good examples for exam practice?

    Im getting ready for finals and i wanna prepare myself by doing alot of problems to cement my understanding.

    Does anyone know any good accessible 2010, 2011 final exams that i could work on? Any...
  4. Replies
    5
    Views
    1,515

    Re: Creating a program that reads from a file

    Im trying to create a histogram which reads values from a txt file and then displays how many of each corresponds in each interval.

    For:



    while (n < 0);
    {
    int[] numbers = new int[n];
    }
  5. Replies
    5
    Views
    1,515

    Re: Creating a program that reads from a file

    Exception in thread "main" java.lang.Error: Unresolved compilation problem:
    numbers cannot be resolved to a variable

    at Histogram.initializeCounterArray(Histogram.java:85)
    at...
  6. Replies
    5
    Views
    1,515

    Creating a program that reads from a file

    Im working on a problem today and I getting errors for some reason.

    Problem statement:



    Design and implement an application that creates a histogram,
    which allows you to visually inspect...
  7. Replies
    3
    Views
    531

    Fixing the scan input

    Im quite close to fixing this problem i've been having for a while, allow me to post my coding:

    1. Driver



    import java.util.*;


    public class Driver
  8. Replies
    4
    Views
    709

    Re: Implementing a Driver to following code

    The output I want for this program to do is when i run it, it will ask for a password, if its wrong, it will prompt "You better remember the Lock value" if its the correct password, it wil run the...
  9. Replies
    4
    Views
    709

    Implementing a Driver to following code

    So here are my code segements:

    1. The Interface with problem Im trying to solve




    // Design a Java interface Lockable that includes the following methods: setKey,
    // lock, unlock, and...
  10. A program that counts the number of punctuation marks in a text file

    So I've attempted it, and in the end, i ended up getting the same values for most of my punctuations, the wrong value, so i want to know
    where I could be going wrong:

    import...
  11. Replies
    1
    Views
    232

    Displaying the other

    Im doing a project, taking a regular text file, and then scan for how much a certain punctuation type appears in a text file. Im trying to perform this action with 2 classes instead of one, but 1...
Results 1 to 11 of 11