Java (not to be confused with JavaScript or JScript) is a general-purpose object-oriented programming language designed to be used in conjunction with the Java Virtual Machine (JVM). "Java platform" is the name for a computing system that has installed tools for developing and running Java programs. ...

learn more…| top users | synonyms (8)|java jobs

0
votes
0answers
8 views

Best way to compare ArrayList of Objects in Java

I have say for example a User POJO that contains name, age, type. If I have records of:[{"name":"mm", "age":20, "type":"student"},{"name":"mm", "age":20, "type":"student"},{"name":"mm", "age":...
-1
votes
0answers
12 views

how to convert an specific value from an object list to an long list using java lambda expression

i have an object list called "myDto" and it has Long type values called "ID" s. I need to separate only the ID values and save to another Long list. are there any way to do that using java 8 lambda ...
-1
votes
0answers
7 views

why is my java program not returning anything?

For some reason, I don't get an output with the main method when I try to run the convolution2d program. What am I doing wrong here?The program is supposed to look at the convolution 2d method in ...
-1
votes
0answers
7 views

java arraylist : saving into database

I have a registration form. User select their industries .I store it in a array list. User can add/ remove industries. They select 10-20 industry choices.How do we save such dynamic data in a db? ...
0
votes
0answers
3 views

/s/S in ANTLR parser rules

I want to write a parser rule to parse a valid String, my rule goes like this:STRING: '"' [\s\S]+ '"';But it gives me a warning saying invalid escape sequence \s. I tried other escape sequence ...
-1
votes
0answers
12 views

How to get all keys with same value in hashmap Java? [duplicate]

I have stored values in a hashmap :Key Value"act" "atc""tac" "atc""dog" "dgo""atc" "atc"I want to print all the keys orderly with the same values. I am not sure how to get all the keys ...
-4
votes
0answers
17 views

Need help for Android project very very new to java

I need help I am a student and I am doing a project on a queue cutting and epayment I have very very limited amount of knowledge on java and my project is due in 1 month time please help
0
votes
0answers
10 views

stopped app when I run It in the emulater

the Code**package com.ayoubdesigner.sinbad.myapplication;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;public class MainActivity extends AppCompatActivity {@...
-2
votes
0answers
11 views

Java Comparator.comparing() with String charAt() Function [duplicate]

I am learning the new Comparator.comparing() function.Here is the code I write to get a comparator for String to sort by the last char. To make the discussion simpler, here we just assume no null ...
-1
votes
1answer
6 views

What is causing java.lang.IllegalStateException: Ambiguous handler methods mapped for HTTP path

I'm getting the subject error message, however I can't figure out why. I have a fairly complex set of controllers. The subject controllers are as follows:package ws.daley.hollow.web.controller.admin;...
0
votes
1answer
11 views

Wanting to throw an intent to open a new activity but continually crashes

There's nothing fancy or complicated here. I am just looking to open a new, blank, activity from when I press on the textview. From the projects completed files, I seem to have done it as it wants me ...
0
votes
0answers
3 views

chrome Webdriver can't be resolved to a type error eclipse and java

Im trying to do some automation projects with chrome, java and selenium and having problems importing the chrome driver. package main;import org.openqa.selenium.*;public class SitePoster {...
0
votes
0answers
4 views

Merge Hot and Cold Observable with buffer

I have 2 sources of data. A service call which gets the current state of a list of itemsA stream of updates to these itemsI am trying to merge them in a way that I don't lose any of the updates ...
0
votes
0answers
10 views

Cant call another method from onClick Android - Throws illegalStateException

I am fairly new to Android, and am creating a simple contacts app. I have a 'Contact' class that holds first name, last name, etc, and in my activity I am attempting to read the input from the edit ...
0
votes
1answer
26 views

Purpose of using super constructor in derived class

I was taught that declaring the instance variables as protected is bad and it is considered bad design due to increased coupling between the super and sub classes. Instead, use a super constructor as ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,