Posts by Guifling • 89 points
7 posts
- 
		0 votes1 answer40 viewsA: Data conversion using ComboboxYou have a NumberFormatException This exception is being made when you convert String to the whole type int To prevent this problem from happening you should make sure that the String you are… 
- 
		1 votes2 answers184 viewsA: How to access the name and address in the Customer Class, and access description and price in the Java Product Class, being in the Box Class?You need to create an instance of the Customer class and the Product class and move them into the Box class. I don’t know what your specific needs are but one of the ways to do that is: Cliente… 
- 
		1 votes1 answer31 viewsA: How do I create a Java class that is like: Minhaclasse<T extends Comparable<T>?The initialization logic of your example is the same as when an array is created using Generics. You will put the name of the Class that meets the inheritance criteria you mentioned within <>… 
- 
		0 votes2 answers123 viewsA: Char Search in Object ArraylistHere’s an example below, to scroll through your password list again after all preferred passwords have been extracted. Another way to think about this problem is, when you find a preferred password… 
- 
		-1 votes1 answer72 viewsA: How to pass the array from a method to Another method using interfaceIf you need to use interface, just add the interface as a parameter of your method. All objects of the classes that implement their interface can be passed as parameters. Another way is to declare… 
- 
		0 votes1 answer18 viewsA: I’m trying to make a chronometer program using java FXML in Scene Builder and I can’tYou are trying to update the Javafx thread using another Thread, this is not possible. Javafx only accepts things from within its own thread. Try using Platform.runLater() and pass as a runnable… 
- 
		1 votes1 answer144 viewsA: How do I calculate the angle of an object in java?Using Math.atan() returns the value in radians, but you need the value in degrees. Do the following to find the angle in degrees. public double calculaAnguloEmGraus(double x, double y) { double…