Skip to content

Tag: java

Minimum number of node in AVL tree?

I know the formula of finding minimum number of node in a AVL tree is S(h) = S(h-1) + S(h-2) + 1 However, I don’t really get how to use this function, say if we have a AVL height of 6. The answer tells me that Minimum = 7 + 4 + 1 =12. But how do you get this

Use processing in Java application

I downloaded processing from http://processing.org. How is it possible to use porcessing in my Java application. I want drawing stuff depending on the logic in my Java application. To avoid the drawing in Java I want to use processing instead. Answer Piece of cake, First, In your IDE (eg Netbeans) first inclu…

LOG4J in Android

I have a Java Project with a lot of files, which is using LOG4J. Now I am trying to Port it to the Android platform. Is it possible to reuse the code as it is, with LOG4J function calls? Current understanding: Property configuration won’t work (beans dependency) I tried with LOG4J for Android and SL4J L…

Java 7 support of AES-GCM in SSL/TLS?

According to Java 7 documentation as well as third party vendors, it appears Java 7 should support AES-GCM suites: ibm java 7 java 7 ssl doc I was hitting some errors in negotiation between client and server unable to negotiate a cipher due to restricting it to only the AES-GCM ciphers. After investigation I …

Can we call another project java class from our project in eclipse

Answer You can do either this way: In the dependency you can add the other projects to your project. Right click on project -> properties -> java build path -> projects. Add your project here. OR Make the classes of project into jar and add it to other project Dependencies should be added in classpat…