No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Summary of task: I have to write a program that adds 3 places to each char of a user input string to encrypt and vice versa for decrypting. Doesn't seem to hard, but as a beginner I am having an issue. I am having problems getting the user input string … |
|
I am writing a method (public static void reverse(String word)) that accepts a String as an argument, then returns the word in reverse order. The easy way would be to just have the recursive method print each letter but that wouldn't be my instructor. He wrote the main and the … |
|
Re:
I'm trying to read in a text file character by character. However, when I try to read it in it using the readChar method in DataInputStream it gives me a IOException. Heres what I have so far [CODE] FileInputStream stream; try { // Open an input stream stream = new … |
|
I am working on a program that reads in a text file as a command line argument, then goes through the file, breaking the file down into strings, special symbols (such as .:!;?) and integers. The program stores each type into its own collection. I have all the collection methods … |
|
I am trying to compile my program on a Unix machine per my instructor's directions. I am getting two errors when I compile my interface. The two errors are cannot find symbol symbol: class OverFlowException location: interface Ch3Pkg.PracticeCollection<E> public void add<E element> throws OverFlowException; cannot find symbol symbol: class ElementMissingException … |
|
I am writing a program that uses two arrays, one holds int and one holds String. I am using an interface and building a class that implements it. The method in the interface uses a method written like [code] public void add(E element) throws OverFlowException; [/code] This method is to … |
|
Hello, I am writing a while loop that will run as long as the cell in the array is not equal to the object element. However, using the .equals method I cannot find a way to do so so that the loop uses not equals to compare the object to … |
|
I am having an issue with a subclass. When I put in the code [code]package Ch1Pkg; public class RoundBaseContainer extends BaseContainer{ [/code] to implement the superclass of BaseContainer, I am getting an error that says cannot find symbol Symbol: constructor BaseContainer() location: class Ch1Pkg.BaseContainer I have the files in the … |
|
My assignment is to use a method to do the pig latin part of a program I have already done. So basically, I have the program written, code is below, but am getting two errors in it. I have not really gone over using strings and returning them to the … |
|
I am brand new to java this semester. So far it has been going well, but having trouble figuring out how to do this one part of a program I am working on. This program requires the user to input a playing card, abbreviated, such as 9D for 9 of … |
|
I have to write a program for school that has user input ten movie titles and their corresponding ratings. This program must use parrallel arrays. There is more to the program but not needed for the issue I am currently having. I cannot seem to get the string for the … |
|
Re:
here is my current code: [CODE]#include <iostream> using namespace std; int bubbleSort(int [], int); int selectionSort(int [], int); void showArray(int [], int); const int SIZE = 20; int main() { //The array with unsorted numbers int numbers[SIZE] = {23, 44, 2, 6, 15, 70, 45, 80, 46, 30, 0, 11, … |
|
I am now writing a new program, a modification of a program I have done before but now with arrays. It is a currency conversion program that converts four currencies. User inputs the starting currency and the program will display all four of the currency conversions for the amount the … |
|
I am having issues getting this function to work. This is a currency conversion program that gives the user choices of input of three other currencies other than USD and converts it. It is supposed to be a value returning function, not a void function. The program compiles, runs fine, … |
|
I am writing this program to use user defined functions, must be return value functions as well. It is a modification to a program already written, and am having a couple errors that I just cannot figure out. Here is the code, the errors I am getting when I compile … |
|
Hey fellow programmers. I am just starting to work on C++ and languages in computer programming. So far its not bad yet, but having an issue with this program I am trying to write. The program I am writing is to compute the sum of the minutes exercised per week, … |