Erkki Veps�l�inen

Greenhorn
+ Follow
since Feb 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 Erkki Veps�l�inen

Thanks, works out fine

19 years ago
I've made a program that takes arguments from the command prompt. I use the args as conditions for if statements. Now I want to give from 2 to 4 arguments. The problem is that my array gives an Arrayindexoutofboundsexception if I want to give for example only 2 arguments since my if statements contain conditions for args[2] and args[3] aswell.

Suggestions?

-Erkki
19 years ago
Thanks for informing! Got it clear!
19 years ago
What is the reason that I get an error message "non-static method cannot be referenced from a static context" while trying to return a value from a class? what does it mean actually?
Thanks,
Erkki
19 years ago
Hi,
How can I compare if two chars are the same, "equals" doesn't work here.
Thanks
20 years ago
Thanks all, for my purpose StringBuffer was enough, easy & works fine!
20 years ago
No, i don't want to add spaces but I want the first line decide the maxlength. the rest of lines should be of that length. I'm trying to solve this with arraylist right now. depending on if the other lines are shorter or longer they should be combined or splitted so that all the information is kept. Should I use Arraylist ?
20 years ago
hi!
I'm trying to move characters from a string (st) to an element of an array, using alist1.add() method. I get an error message "cannot resolve symbol" with this:
)
do {
alist1.add(i, st.charAt(j));
laskuri=st.length() + 1;
j++;
}
while (j > st1.length() || laskuri > linelength);
why's that?
20 years ago
Hello all!
I am making a program that reads a text file. The file should be modificated so that each line has similar lengths. My question is if I can use stringTokenizer so that the delimiter is the length of a line?
So far I've been trying to solve this with substrings but it gets pretty messy.
Thanks!
20 years ago