Jump to content

Recommended Posts

Posted

1) Did you read ArrayList class, the all superclasses and interfaces manuals? To do it you use search engine with the name of class, and the name of language that you're using e.g. "ArrayList java" (because ArrayList is present also in the .NET Framework in C#/C++ on MSDN, but has different methods and syntax).

https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html

If you are not familiar with this class, that is where you should start. By reading docs. Every programmer does it. RTFM = Read The Fucking Manual.

2) How to enumerate entries in ArrayList class?

3) How to check whether two following entries are in the right order?

 

ps. If you don't know what to do, RTFM! Print it on your T-Shirt.

1224278011_RTFMT-Shirt.thumb.jpg.2eacb0d4357f7c9d2122e7435763e3f4.jpg

Posted
30 minutes ago, az1029 said:

I don’t even know where to start on this!

What part of it is the problem?

Do you know how to write a function?

Do you know how to compare two values?

Do you know how to write a loop?

Do you know how to access the elements of an ArrayList?

If you can answer "yes" to all the above, then you should be able to solve the problem

15 minutes ago, Sensei said:

ps. If you don't know what to do, RTFM! Print it on your T-Shirt.

If you don't want to help people, maybe don't post in the thread

Posted (edited)
1 hour ago, Strange said:

If you don't want to help people, maybe don't post in the thread

But "RTFM" is the best generic lesson for programmer-to-be, presented in easy to remember and humorous form. The majority of answers for questions programmer will have in the future every day work, are answered in manuals, docs, and in comments made by other programmers, who wrote below manual the main page, in articles leaved for other programmers. "RTFM" should not be taken personally.

Edited by Sensei

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.