Find some really violent movies, and they should give you ideas about what to do to people who insist on using brute force
Petros Papatheodoru wrote:. . . I am not supposed to make any optimazations to the problem in the bruteforce solution . . .
Are you sure that is the right way round? A JFrame has buttons and a title bar; a JWindow doesn't. Have a look in the Java™ Tutorials.
Matt Wong wrote:. . . use a Frame instead of a Window
Window default to have decorated to true, wich add title-bar and therefore the minimize/maximize and closing buttons
a Frame doesn't have these but only provide the native peer provided by the system windowmanager so you can draw anything yourself on it.
. . .
In which case I think you should make your λs nice and simple, so they are easy to follow. I think you are better off learning λs as early in your career as possible, so you become familiar with them.
AhFai Chan wrote:. . . About not using lambda: its difficult to debug, . . . .
I don't think books should use lambdas
No, the principal advantage of λs is that they allow us to use a more functional style of programming.
authors can point to the advantage, being less typing . . .
Please check the String documentation for details of overloaded methods before posting that sort of thing.
sohail hussain wrote:. . . you have to provide start index and end index to which you want to get substring
Afraid that isn't correct, as you will see from the appropriate documentation link.
It will print "llo" . . .
There I was thinking, “That should read abholDatum and rueckGabeDatum,” but then I remembered that Deutsch allows almost infinite scope for concatenating words, so camelCase is alien to German grammar.
Stephan van Hulst wrote:. . . when you write code in German, use variable names like fahrzeug, abholdatum and rueckgabedatum . . .
The number inside the  is the index of the array element, yes. The String#split() method returns String, so myString.split(someRegex) represents a single String.
Darko Jakimovski wrote:. . . why are the square brackets added . . . the index of the returned array? . . .
Good to see you back. You would have got much extra knowledge by asking questions here.
Glad to be back on the ranch, after a long pause (needed some extra knowledge to be comfortable to ask questions ), cheers.