java programming

S

shreya

create a class exam, add method student and add students name , roll
no, and print them
 
L

Lew

You have to do some of your homework for yourself.

Has school started already? It's only early August!

Maybe it's a pre-semester warmup course to get students ready for the real work.
 
K

keif

School has begun. My classes started this week (Ohio) so I can only
assume others have started as well.

So all this time I could've been bugging the list to do my homework
for me? And here I've been wasting my time "learning" OOP in Java when
I could be posting my homework questions!

-kb
 
Joined
Aug 10, 2009
Messages
1
Reaction score
0
how to remove my duplicate integer

) Write, efficient code for extracting unique elements from a sorted> list of array.> e.g. (1, 1, 3, 3, 3, 5, 5, 5, 9, 9, 9, 9) -> (1, 3, 5, 9)


>who can help me to solve this question >.<
import java.util.*;

class Question1

{
public static void main(String []args)
{

int str[]={1,1,3,3,5,5,5,9,9,9};



int repeat=str.removeDuplicates();


}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top