Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~532 People Reached
Favorite Forums
Favorite Tags
java x 9
Member Avatar for lrolsto1

For a CS project, I need to have my program "gracefully terminate" in case of certain user input errors. What is the best syntax to do this?

Member Avatar for aspire1
0
75
Member Avatar for lrolsto1

Assignment: Create a program to practice reading in from a file, search for a particular word when the user inputs a word to search for and a file via command line args. Print out the entire line each time it is found. Progress: It compiles, and runs.... kinda. Problem: I …

Member Avatar for BhagatS
0
87
Member Avatar for lrolsto1

I habitually compile after every change I make, i had all of 5 minutes to start a project and this will not compile!!: [CODE] public class Battleship{ public static void main(String[] args){ int boardInput = parseInt(args[0]); } }[/CODE] I get this error: Battleship.java:19: cannot find symbol symbol : method parseInt(java.lang.String) …

Member Avatar for lrolsto1
0
118
Member Avatar for lrolsto1

So, I am working on a project that uses inheritance. I have a class Creature, which extends Thing. Also, I have classes Tiger and Ant that extend creature. I also have a TestCreature class. All of these are in the same directory, and they all compile. However, when I run …

Member Avatar for Ezzaral
0
89
Member Avatar for lrolsto1

Alright, this is for a project designed to make us use inheritance. This is Creature, which is a subclass of Thing. Creature is supposed to be able to eat, move and tell what it ate. Here are my issues: 1. How do I use a constructor from Thing in Creature? …

Member Avatar for LReynolds
0
70
Member Avatar for lrolsto1

Stupid question, I'm sure: For an assignment I need to create a program that uses methods and constructors in several other classes... the classes were in a file that I unpacked and put in the same directory as the one I'm writing is in. What do I need to do …

Member Avatar for Ezzaral
0
93