For the out put it gave me:
[1]
[1]
Where as the output i want to achieve is
[1]
[1] [1]
Type: Posts; User: Twoacross
For the out put it gave me:
[1]
[1]
Where as the output i want to achieve is
[1]
[1] [1]
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...
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...
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];
}
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
numbers cannot be resolved to a variable
at Histogram.initializeCounterArray(Histogram.java:85)
at...
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...
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
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...
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...
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...
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...