Java Help General

Write here if you have problems with your Java source code

Moderator: Board moderators

Post Reply
aniketvast
New poster
Posts: 4
Joined: Wed Mar 09, 2005 8:30 am

Java Help General

Post by aniketvast »

I understand that currently only JDK 1.1 and 1.2 will work. And that some of the classes in these versions are restricted.
However, I wanted to know exactly which classes are restricted. I don't want to know why they are restricted :) ...just which ones.

It so happens that my programs compile correctly locally but won't compile on the Submit-o-matic.

Are Vectors allowed?

Thanks
Aniket
aniketvast
New poster
Posts: 4
Joined: Wed Mar 09, 2005 8:30 am

Java General Help

Post by aniketvast »

Since it is mentioned that Java will work only with 1.1 or 1.2, I decided to make my program fully compatible with 1.1.8.
I got past compilation problems after that and after making the common changes...like program class has to be "Main" and cannot be public.

I noticed one thing that the output should follow the input immediately...rather than fetching all input , processing and then outputting results.

Also...Vectors are allowed...whew!!
However since I compiled with 118, I couldn't take much advantage of the the rest of the Java API.

Aniket
Alejandro Sotelo Ar
New poster
Posts: 3
Joined: Tue Mar 15, 2005 6:37 am
Location: Bogot

Post by Alejandro Sotelo Ar »

Which methods are available for me??

http://acm.uva.es/problemset/java.html :
"The current support for Java platform is provided by a standard gcj 2.95 installation"

Then, if you want to see compatibility, download:
http://public.planetmirror.com/pub/sour ... .95.tar.gz

And please see the following link: http://gcc.gnu.org/java/

Compile in your normal java compiler, and look for
compatibility as needed. This works fine for me.

For example, the class Vector included in gcj 2.95 only admits methods like elementAt(int) and setElementAt(Object, int); but this class doesn't accept methods like get(int) and set(int, Object)
Last edited by Alejandro Sotelo Ar on Fri Mar 18, 2005 6:15 am, edited 3 times in total.
Alejandro Sotelo Ar
New poster
Posts: 3
Joined: Tue Mar 15, 2005 6:37 am
Location: Bogot

Post by Alejandro Sotelo Ar »

> I noticed one thing that the output should follow the input
> immediately...rather than fetching all input , processing and then
> outputting results.

Many times, I fetched all input, did the processing and wrote the output at end, without problems.
Ulic Qel-Droma
New poster
Posts: 1
Joined: Fri Jul 08, 2005 5:43 am

Here I am, listen to me !

Post by Ulic Qel-Droma »

Here I am.

D' you think, really... are you the best one ?

The guy who looks all the people such as they were animals ?

It's really stupid for a guy like you, to ask all the time to your friends about their grades, in order to comparing your perfomance and let growing your ego...

One day... you'll find somebody better than you, that day... your life'll lost its meaning, mr Sotelo !

:x :x :x :x
"Aquellos que se jactan de su inteligencia, cuya soberbia no puede crecer mas porque sus insignificantes cuerpos no lo soportar
Post Reply

Return to “Java”