Finding white rectangle in an image?

I'm trying to find a white rectangle in an image. The rectangle size is fixed. This is what I've come up as of yet: ...

How to consume a SOAP web service in Java?

Can someone please help me with some links and other on how to consume a web service WSDL in Java? ...

Role/Purpose of ContextLoaderListener in Spring??

I am learning Spring Framework which is being used in my project. I found the ContextLoaderListener entry in my web...

Setting -XX:+DisableExplicitGC in production: what could go wrong??

we just had a meeting to address some performance issues in a web application that is used to calculate insurance r...

“int cannot be dereferenced” in Java?

I'm fairly new to Java and I'm using BlueJ. I keep getting this "Int cannot be dereferenced" error when trying to co...

TreeMap sort by value?

I want to write a comparator that will let me sort a TreeMap by value instead of the default natural ordering. I tr...

javac not working in windows command prompt?

I'm trying to use javac with the windows command prompt, but it's not working. After adding the directory "C:\Progr...

What is the difference between Set and List??

What is the fundamental difference between the Set<E> and List<E> interfaces? ...

JAVA try catch ArrayIndexOutOfBoundsException?

I would like to Rewrite the getContents method below to incorporate exception handling. In particular, when an Array...

Convert int to char in java?

Below is a code snippet, int a = 1; char b = (char) a; System.out.println(b); But what I get is empty output. in...

Comparing two integer arrays in Java?

I am trying to write code to compare two arrays. In the first array I have put my own digits, but the second the arr...

Java ASCII art using for loops?

I am completely stuck on this java loops ASCII problem. https://imgur.com/a/CowB3 I figured out how to do the t...

Trying to determine if a string is an integer?

Instructions: Given a string, determine if it is an integer. For example the string “123” is an integer, but th...

How to run a .jar in mac??

I've written a relatively simple java application. I have JDK on my PC, but I need it to run on a mac for school. Th...

Exception in thread “main” java.lang.ArithmeticException: / by zero?

I have two questions about Exceptions. Firstly, I got this message from my code... Exception in thread "main" java....