Skip to content

Tag: java

Caliing the getContentStream() function in FileNET/CMIS Web Services

I am attempting to call the getContentStream() function in the FileNET/CMIS SOAP/web service. It takes 2 required parameters, a String for the repositoryID, and a String for the documentID. The rest of the parameters are optional. The method signature is this: org.oasis_open.docs.ns.cmis.ws._200908.ObjectServ…

How to convert RGB color to grayscale in Java

I’m trying to create a method that converts a given java.awt.Color color to grayscale. Here’s what I have right now: However, when I call this method, it seems to be returning the color black every single time, regardless of the input color. How do I fix this? Answer The float components are in th…

if statement not working to add 1 based on a condition

This code determines the wins and losses of each quarter but I am having trouble with the PerfectQuarter. A PerfectQuarter is described as when one team has 0 points in a quarter but the other team scores. Everything runs fine but when I enter scores for each quarter and put 00-01 for quarter one, the print s…

Get value of BigDecimal created from string [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed last year. Improve this question I have created a BigDecimal with a scale of 2 like How can I extract the value of the bigdecim…

Why Can’t read data From Database Firebase?

I store name information that was working a few days ago and the information is stored on firebase Realtime, and now you don’t do it, and nothing goes to Database. in my dependencies i Used and in build Gradle (project) Answer In comments we find a problem, you need to add another one SHA-1, or change e…