Ice Brazuca

+ Follow
since Nov 08, 2009
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ice Brazuca

Hey guys I am trying to make a program called word that uses the a text file called output in order to:
1) Count the number of words.
2) Count the number of vowels (a,e,i,o,u *disregard y*)
3) Count the number of sentences.
4) Count the number of lines.
5) Count the number of punctuations.
6) Count the number of characters.

For my output text I have:

Now I tried doing this program in two different ways and I haven't been able to make any of them work so I will show you guys both ways I've done it.

***Here is my first attempt at the program.***

The errors I am getting with this one are:
a) Each "answer" is repeated like 3 times for some reason.
b) It won't read how many sentences I have in the output file.
c) It won't read how many punctuations I have in the output file.

***Here is my second attempt at the program.***

The error I am getting with this one are:
a) It erases the output text file and then give me the message "File is empty. Aborting Program"

Can anyone help me? I've been trying to get this program working for over three days...
11 years ago
Ok guys here is currently my new code.

I have to ignore the -Xlint error, because I need to make this program using the AWT.

Anyways I need for a black line going throught the diamond and the line has to fill in 5 pixels. I can't seem to be able to do this. And the current line I have only fills in 1 pixel and it only works on the right side of the diamond.
11 years ago
As a test run I am only trying to draw the yellow triangle. Here is what I have.

I keep getting the error uses or overrides a deprecated API.
Recomplie with -Xlint:deprecation for details.

Can anyone tell me what I might be doing wrong?
11 years ago
Hey guy I am learning to create shapes and such using Drawable frame on java. I am trying to draw a yellow diamond shaped sign that inside of it has a drawing of a traffic light.

Here's my code.

I keep getting an error on lines 22. int[] xCoordinates(25, 100, 100, 165);

Can anyone tell me what I am doing wrong? I've searched everywhere on my book and I don't understand what's causing the problem.
11 years ago