How to import java.util classes??

Can I import a java.Util class??

  1. import java.util.ArrayList;
  2. import java.util.Collections;

2 answers

2 votes

Yes, probably

Although your question really doesn't make any sense - you haven't given any useful context to it. You could be writing those lines on a page as text, writing a plugin, stuffing things into velocity - there's no sane answer to that question without knowing what you're trying to do and why you think you might need them

0 vote
Thomas Schlegel Community Champion May 31, 2012

Hi Bryan,

I don't know, if I understand your question right, but of course you can import a java.util class.

Here's an example with java.util.x - Classes :

I did not test it, but maybe it helps you.

Best regards


So, I need to sort a list of page... in java the object Collections can Sort the lists... Who can I implement this class in the user macro environment??? That's what I need... Please helppp... :)


I Found a sentence to include a Class...

#set ($col=$action.class.forName('java.util.Collections'))

It works, thanks for your disposition :)

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted Thursday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

174 views 12 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot