Sally Curtis

Greenhorn
+ Follow
since Jan 10, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sally Curtis

i keep getting the following errors
cannot resolve symbol
symbol : variable Collections
location: class PlayingCards
Collections.shuffle(Array.asList(cards));

cannot resolve symbol
symbol : variable Array
location: class PlayingCards
Collections.shuffle(Array.asList(cards));

and my code is



am doing something wrong here?

[EJFH: Added some newlines to code. ]
[ June 03, 2004: Message edited by: Ernest Friedman-Hill ]
19 years ago
how come i keep getting an error ackage Collections does not exist
Collections.shuffle(Array.asList(cards);?
^
19 years ago
hi, i am writing a black jack program and was wondering how i would shuffle an array that consisted of 52 cards( characters)
19 years ago
my data file contains a list of the names but the list has no commas after each name. I tried making the delimeter ""+"" two spaces but it didnt work. so how would i accomplish making the delimeter equal to some kind of space?

also id like to thank the people in this post who helped. I really appreciate the help!
19 years ago
im a bit confused, you said that you would commas as the separator, well what if in the text file, there are no commas separating the names for example
John Doe
Sue McGonnal
just spaces,
and also in the readFile method, what exactly does the .Split method do?
19 years ago
i am writing a method that returns an array full of students names. The students names are given in a file, so my method called ReadFile, reads the file and adds each line(name) to the array
i'm not sure my code is correct, plus i'm not familiar with writing methods that return and array.
If someone could comment on this code, i would really appreciate it.
19 years ago
hello,
i was given an assigment to write a program that asks for the name of a roster file that has students names in it. Then the program promts for eacht students grade and with those grades does some calculations. At the end a table is outputted with the name of the student and the calculations. the program is include an array. My question is, how do i know how many students are in the file? is there some kind of method that counts the lines of the text file?
this is my first few lines of the program

String DataFileName="";

DataFileName=keyb.askString("What is the name of your roster?");
File inFile=new File(DataFileName);



that last line, does that read the file or just creates a new File instance? and should my array in my program consist of the students names or there grades?
19 years ago
hi, i am looking for a simple method for making table headings for a jave program i am working on. If anyone has a good method for that, pls tell, i would really appreciate it.
19 years ago
Hi,
im confused about ioException....what exactly is it and in a method when it says Throws IOException....how does it do that...what has to happen for it to do that?
i have a snippet of a code here
catch(IOException excpt)
well,how does it get into the catch statement?
19 years ago
Hello, i was need to know how one would know when to make and identifier static or nonstatic?
19 years ago
hi, i have this worksheet for class that asks the following question:
Someone wants to create files of debators who will be entering a tournament next month. What instructions should be given about typing these files?
i'm a bit confused about this question because i have never used notepad to write programs or files. Is there a certain way of writing these files in notepad? and what instructions should one give?
19 years ago
Can i send an object to a constructor and then from that constructor send it to a different constructor in the same class?
heres the code

Also, when i parse my string in the if statements, the compilier can't recognise it. is it because of the if statements and can i fix it somehow?
20 years ago
hi, i dont know why but i keep get the following error:
unreported exception java.io.IOException; must be caught or declared to be thrown
problem=askString("type in the first problem.",1);
anyone know why this might be happening?
20 years ago
hi, i am writing a quadratics program. I want to use the string tokenizer to separate the 'problem' into three sections. for ex. -3x^2 + 2x -1....i want to have -3x^2 +2x and -1. How would i use each of the tokens, individualy? Can i do that?
20 years ago
thank you for the code, but im a beginner java student and im bit confused with the code. can u pls explain the code ?
20 years ago