No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
Hello All I am writing this program which: - generates two random numbers -ask user to multiply them -checked users answer to see if its correct. - if not correct, asked the user to guess again I have everything working except the loop that is needed to have the user … |
|
program test whether the given integer is perfect or not i dont know why there is some error and how to solve it? [code]class perfect { public static void main(String args[]) { int a=o; int n; for(int i=1;i<=n;i++) { if(a==n) System.out.print("Perfect number"); else System.out.print("Not a Perfect number"); } } }[/code] |
|
Re:
hey guys, my code requires a toString method and an equals method. My question is, did i do them correctly? im a bit confused on this topic, Any help, im greatful for, and the toString and equals methods are at the bottom, Thank you so much. [CODE]import java.util.*; class Scores … |
|
Write a program in java to a class called Employee which is having the following instance variables. name(string type) age(int type) designation(string type) salary(double type) The class Employee must have a parameterized constructor having only name as the argument and initializes the name variable. Proceed with same class.... write a … |