Linked Questions

1 vote
1 answer
14k views

I have a Java class that uses Spark. I need to filter out the header from JavaRDD. This is how I want to do this. String first = data.first(); JavaRDD<String> filteredData = data.filter((String ...
-1 votes
1 answer
55 views

I have created android app using GridView with ViewPager for images like gallery or small book which have 14 images in my main activity showing error :- error: lambda expressions are not supported in ...
254 votes
8 answers
244k views

I'm developing an Android app. I need to build a URI for my app to make an API request. Unless there's another way to put a variable in a URI, this is the easiest way I've found. I found that you need ...
264 votes
5 answers
346k views

I wrote some Maven code in Netbeans that has approximately more than 2000 lines. When I compile it on Netbeans, everything is fine, but if I want to run it on command line, I will get these errors: ...
MTT's user avatar
  • 5,303
4 votes
3 answers
6k views

Good day all I know there are various questions on this issue, and I have visited quite a number of them, however they do not provide any "solution". The general answer is to set the Language level ...
2 votes
4 answers
622 views

I am working on part of a program (concerning speech recognition and a remote control car), where the code transmit(XXXXX); disableAutoMode(); is repeated many times. For curiosity's sake I would like ...
2 votes
1 answer
637 views

I have added Java 8 compileOptions in app module compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } I also have checked "...
Hai Hack's user avatar
  • 1,028
1 vote
1 answer
3k views

I've installed JDK 8. I set my JAVA_HOME to the JDK 8 directory. I downloaded the latest Eclipse Luna. I checked for updates. I set my default (and only) Installed JRE to the JDK 8 directory. I ...
w25r's user avatar
  • 882
0 votes
1 answer
2k views

In the official android documentation, on how to implement a ViewModel, there is this method: private void loadUsers() { // Do an asynchronous operation to fetch users. } In my case I don'...
0 votes
1 answer
855 views

I am creating a chess game and i am stuck at one thing for a couple of days. So i want to create event when user moves over a figure the image of figure replaces to another image with border and when ...
xCrazy's user avatar
  • 3
2 votes
0 answers
663 views

I have found various questions about language lvl but none resolves my problem. I am developing a Cordova plugin and I want to use annotation. The project was generated by cordova build, I have never ...
1 vote
1 answer
635 views

What I try to make is: Draw a BitmapFont on the top of the screen and let it go down to the bottom, where it gets deleted. While that BitmapFont is still making its way down, draw another BitmapFont ...
-1 votes
1 answer
366 views

Like in the title, I'm trying to compile lambda, I'm using 1.8 jdk, and have no idea. Error log here: Proof that I really got 1.8: part1: part2: Any ideas why I've got problem like this, lambda ...
degath's user avatar
  • 1,661
2 votes
1 answer
482 views

I am having problems with defining the step and mapping it to the scenario. I have installed maven, set up the dependencies for java, and installed cucumber for java plugin altogether with external ...
troc's user avatar
  • 45
0 votes
2 answers
165 views

I'm trying to animate the height of a ConstraintLayout using the Animation class, and the setDuration method doesn't seem to be working. The height is just instantly changed to the desired height ...
Paul Campbell's user avatar

15 30 50 per page
1
2