Forum: Java Apr 26th, 2005 |
| Replies: 1 Views: 1,658 I have a text file that looks like this,
John, 27, Kids, Married
Jane, 22, No Kids, Single
and so on...
I have read in the text file as seen below, |
Forum: Java Apr 12th, 2005 |
| Replies: 7 Views: 2,636 How should I change the switch to make it work? |
Forum: Java Apr 12th, 2005 |
| Replies: 7 Views: 2,636 Can someone look at my program. I am having a problem with my Scanner line. Does anyone know how to fix this problem??
I keep getting an error at this part:
letter = scan.nextLine();
import... |
Forum: Java Mar 31st, 2005 |
| Replies: 13 Views: 11,558 I am writing a java program. One of the functions of my program is to count all the uppercase letters in a paragraph of text I import. I am not sure how to set this up.
Is it something like,
... |
Forum: Java Mar 30th, 2005 |
| Replies: 6 Views: 5,750 This is where I am now:
import java.util.Scanner;
import java.io.*;
public class BaseballStats
{
//-------------------------------------------------
// Reads baseball stats from a... |
Forum: Java Mar 29th, 2005 |
| Replies: 6 Views: 5,750 ok, good so far but how do I parse the names for the players? |
Forum: Java Mar 29th, 2005 |
| Replies: 6 Views: 5,750 For this program, we need to read in a file which has baseball stats. Our program reads in the dat file then parses each line in the file. The file looks like this:
Joe h,o,h,s,h,o,h,h,h,o,o,o... |
Forum: Java Mar 23rd, 2005 |
| Replies: 5 Views: 3,146 |
Forum: Java Mar 23rd, 2005 |
| Replies: 5 Views: 3,146 I'm sorry, the program you see is how far I've got to this pooint. I was confused about hoe to incorporate the switch and the loop together. |
Forum: Java Mar 23rd, 2005 |
| Replies: 5 Views: 3,146 I'm supposed to write a loop to loop through the days, the write a switch statement for the verses. The program should print out just like the song goes.
For example:
On the 1st day of xmas my... |
Forum: Java Mar 3rd, 2005 |
| Replies: 1 Views: 1,604 Nevermind, I figured it out.
if (coin1.toString()!=coin2.toString()&& coin1.isHeads())
System.out.println ("Sue Wins!");
if (coin1.toString()!=coin2.toString()&&... |
Forum: Java Mar 3rd, 2005 |
| Replies: 1 Views: 1,604 I have a question. Below is my driver, I've already written a class. The object of the program is to report a winner and loser based on a coin flip. Heads wins. I already have if... |
Forum: Java Mar 2nd, 2005 |
| Replies: 2 Views: 3,045 |
Forum: Java Mar 2nd, 2005 |
| Replies: 2 Views: 3,045 I understand I can write a statement like:
if==12 or if <12 but how do you write an if statement for something like,
A = 90-100
B = 80-89
How do you write the if statement for that?
My... |
Forum: Java Feb 13th, 2005 |
| Replies: 1 Views: 1,778 When you have to write your own class, is it ok to call the scanner class in your class? |
Forum: Java Feb 12th, 2005 |
| Replies: 3 Views: 3,171 I have an assignment to write a java class.
What I need to do is write a class and a driver. I need to write a class that stores instance data as members names.
Golfmember(name : String)
... |
Forum: Windows NT / 2000 / XP Jan 14th, 2005 |
| Replies: 2 Views: 1,464 I finally figured it out.
Had to reinstall windows script 5.6.
THANK GOD!!!!!!!
Thanks for those who tried to help. |
Forum: Windows NT / 2000 / XP Jan 14th, 2005 |
| Replies: 2 Views: 1,464 I'm having a problem here with Windows XP, IE, and Yahoo messenger. They all tell me to enable Java Scripting. The problem is, my java scripting IS enabled. One user told me I may have some damaged... |
Forum: Windows NT / 2000 / XP Jan 13th, 2005 |
| Replies: 7 Views: 2,060 I'll give it a try.
I checked on the Yahoo messenger thing. It said the same thing to fix the problem...make sure your scripting is enabled.
So, evidentley thats my problem. Even though... |
Forum: Windows NT / 2000 / XP Jan 13th, 2005 |
| Replies: 7 Views: 2,060 Didn't work.
Thanks for the help though.
I think all this crap started happening when I uninstalled Norton. |
Forum: Windows NT / 2000 / XP Jan 12th, 2005 |
| Replies: 7 Views: 2,060 I am sitting here with my fingers crossed.
This is the kind of problem that keeps a man up at night!!!
ARGH!!!!!!!! |
Forum: Windows NT / 2000 / XP Jan 12th, 2005 |
| Replies: 7 Views: 2,060 I'm having a strange problem here.
Windows XP, if I click on search under start...I get a blank page. If I click on
system restore I get a blank page.
When I try to use Yahoo messenger, It... |