Category "java"

Only using @JsonIgnore during serialization, but not deserialization

I have a user object that is sent to and from the server. When I send out the user object, I don't want to send the hashed password to the client. So, I added @

Android method performance suddnely slow after upgrade from Marshmallow to Nougat

I have been developing a game, using a Samsung Galaxy S6 running Marshmallow as one of my development devices. After the phone upgraded itself to Nougat, a met

Serialize Java 8 Stream with Jersey

How can I serialize a Java 8 java.util.Stream<T> with Jersey. I tried to write a MessageBodyWriter, but I need to know how to compose (decorate) existing

How to set custom environment variables in tomcat?

I have few key- value pair variables in my program which is hard coded now. String pswd = StringUtils.defaultString(System.getProperty("KEY_STORE_PASSWORD"), "

How can I use the singleton pattern in an Android project? [closed]

I know about singleton, but I can't use it in an Android project. I am a beginner in Android. How and where can we use singleton in an Android

MapStruct - Cannot find implementation

Using latest Springboot and MapStruct versions and building with Maven, I am trying to implement the "Start Here" example given in the official MapStruct site

Flutter - getApplicationDocumentsDirectory() : How to get the path in android and iOS

Directory tempDir = await getTemporaryDirectory(); String tempPath = tempDir.path; In android native code, I use getCacheDir() How do i get the getApplicatio

Fast real valued random generator in java

java.util.Random.nextDouble() is slow for me and I need something really fast. I did some google search and I've found only integers based fast random generat

This Error Force close my app when I'm inspecting my table : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x10

I have table in my application and I'm Running my app on Huawei y9 and this error pops up after a 30 sec and force close my application. I link my other questio

Solving crosswords efficiently [closed]

I have a crossword puzzle and a list of words which can be used to solve it (words can be placed multiple times or not even once). There is al

Access Headers at any time when implementing org.springframework.validation.Validator

I have a Spring Boot Application where I need to perform some validation over the request's fields based on a header value. So like any other Spring Boot App m

com.twitter.sdk.android.core.TwitterApiException: HTTP request failed, Status: 403

I have recently added fabric plugin in my android studio, but i am not finding twitter login option on that plugin. When i search on google then i found one qu

Java - Getting file from same package

If I want to read from "Words.txt" which is in the same package as the class, how would I do this? Doing simply Scanner = new Scanner(new File("Words.txt")); re

MapStruct implementation is not working in Spring Boot Web Application

I am a newbie to Spring Boot and MapStruct Tool. Earlier, A Project(written by other team using these technologies) is not starting up. Then, I had made some

WebSphere Server V.8.5 troubles with Eclipse project

I'm trying to create an IBM WebSphere V.8.5 web app using Eclipse. I downloaded and installed all the IBM packages needed and followed the official guide to cr

Find third largest no in Java

I'm little confused with this simple program.I have to find third largest no in array.I have done some code but getting only second largest no problem in third

How to convert Protobuf ByteString to an octal-escaped String in java?

Could anyone please let me know how to convert protobuf's ByteString to an octal escape sequence String in java? In my case, I am getting the ByteString value

Gwt/gson in eclipse, error: "Unable to invoke no-args constructor for class"

I'm playing around with this Google Web toolkit/GSON example that gets data from twitter. Everything is compiling just fine, but when I debug as Web Application

Is there a java/JS library which can compare two json files and produce comparison result as html?

The idea behind the question is to have some library/tool which can compare two json strings and produce comparison result as html. E.g. the way some online com

Gwt/gson in eclipse, error: "Unable to invoke no-args constructor for class"

I'm playing around with this Google Web toolkit/GSON example that gets data from twitter. Everything is compiling just fine, but when I debug as Web Application