Garry Meax

Ranch Hand
+ Follow
since Feb 11, 2005
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 Garry Meax

in append mode from doss prompt?

thanks
16 years ago
thanks Ernest for the quick reply. and thanks u too Anirvan.

Ernest, the code u gave,

it works but the thing is it writes those numbers vertically. i want to write them to file horizontally.

i thought i coud achieve it by changing println to print but it doesn't write anything when i changed


to

[ October 05, 2005: Message edited by: Garry Meax ]
16 years ago
i want to write the contant of below array to a text file

and i use the following code to write

here is the contant of test.txt


why is it not writing the numbers (which is present in num_Survey[])


thanks

[ October 05, 2005: Message edited by: Garry Meax ]
[ October 05, 2005: Message edited by: Garry Meax ]
16 years ago


this method is used to get the value in a text field and return it as a integer value.
can someone tell me why JTextField CurrentValue is used. normally i see String CurrentValue or int CurrentValue.

can someone explain this to me
16 years ago
i used but it is not workin.

<select name="card">
<option value="Diamond" onChange="chan(this.value)">Diamond
</option>
</select>
so, if i use drop down list instead of radio i should use this.value, right?
what is the difference between

chan(f1.card.value)

and

chan(this.value)

isn't it sending the same value?
thanks a lot. it did work. i been trying to figure out that for ages.

once again, big tq
[ May 26, 2005: Message edited by: Garry Meax ]
when the user clicks the particular radio button.

in the page i have 1 image and 4 radio buttons with in a form.

if th euser clicks Heart, i want to chage the picture to Heart.

i tried to put the code here but was not allowed as it contains javascript, i suppose.

here is a link to my file:
eric gave me the solution. so, i removed the link

can some one help me here.

thanks
[ May 26, 2005: Message edited by: Garry Meax ]
hope this help you.

16 years ago
thank you for the help
16 years ago


no, it doesn't. its a mistake.

it should be:

[ February 23, 2005: Message edited by: Garry Meax ]
16 years ago
i have set data using this code:
P[0] = new Person();
P[0].set_data(1,1000);

this is the error i am getting:
sor{int[]} in Person cannot be applied to {Person[]}

sor is the name of my sorting method.

[ February 23, 2005: Message edited by: Garry Meax ]
[ February 23, 2005: Message edited by: Garry Meax ]
16 years ago
i have created 5 objects using (Person[] P = new Person[5] .

and i have a method which sorts those 5 objects according to the number(i am passing an integer value as one argument of method set_data()).

i tried to call that mathod(one which sorts) using the following code:
sort(P);

but this generates an error. how to call that sorting mathod?

[ February 23, 2005: Message edited by: Garry Meax ]
[ February 23, 2005: Message edited by: Garry Meax ]
16 years ago
import java.io.*;

class Person
{
String ic;
String name;

void set_data(String i, String n)
{
ic = i;
name = n;
}

String get_ic()
{
return ic;
}

String get_name()
{
return name;
}

public static void main(String args[])
{
Person P[] = new Person[5];

P[0].set_data("123456", "Tony");
System.out.println("Employee No: "+P[0].get_ic());
System.out.println("Employee Salary: "+P[0].get_name());
}
}

is this the way to create 5 objects(Person P[] = new Person[5] ?
[ February 23, 2005: Message edited by: Garry Meax ]
16 years ago