No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
Does changing the type from float to double do the trick ? My guess is that the number is being rounded because it is reaching its precision value.
The expression a = 5 is evaluated as bool. Non zero is true. Thus the error.
I really dont understand the need of creating a class within another class.. The logic there seems to be pretty cluttered. Instead, there should be 2 separate classes which make things simple for further modifications. Also, delegations are a better way of object orientated programming. The student class can be …
Well i came up with a possible solution which was pretty trivial.. i hope this is what you are looking for.. import javax.swing.*; public class SwingUtility { public static void main(String args[]) { int input1; int input2; int input3; int Volume; input1=Integer.parseInt(JOptionPane.showInputDialog(null,"Enter the length of the swimming pool:")); input2=Integer.parseInt(JOptionPane.showInputDialog(null,"Enter the …
The End.
karthikbgl