- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 4
- Posts with Downvotes
- 4
- Downvoting Members
- 3
13 Posted Topics
Re: Some things you may wish to consider, "Disk", can I see source of it? "Disk"s constructor...is it expecting an integer then a double? if (plate1.equals(plate2))...did you programme "equals" In Disk? instead of printing plate1 try printing the plate1.toString which you should have programmed to simplify things any corrections of my … | |
Re: [CODE] import javax.swing.*; import java.text.DecimalFormat; public class BMI { public static void main(String args[ ]) { double Weight = .453592; double Height = 2.54; weight = Double.parseDouble(JOptionPane.showInputDialog(null,"enter your weight in kilograms")); height = Double.parseDouble(JOptionPane.showInputDialog(null,"enter your height in kilograms")); double BMI = weight/(height*height); DecimalFormat fmt = new DecimalFormat("#.##"); System.out.println("Your Body Mass … | |
Re: 1) Class: Multiply Attributes: int x int y Methods: getters&setters Constructors toString in Main create array or arraylist of the class Multiply take in the 2 numbers into each to print: iterate through the array and print the "Multiply.toString()" and the "toString()" will include the "x*y = z" to form … | |
Re: I suppose Computer Science is a basis of both put together I am in second year and learning C,assembly,Java and SQL...but also learning about processor architectures via assembly. software engineering is programming viewing things from the software level, where as Computer engineers learn from the hardware's point of view. look … | |
Re: VB6 is the last I used Visual Basic but feel it would be very usefull, Java is mostly a databasing and command-line language from what I have seen so far but am not experienced enough to give a definite answer. but I feel if you are using Microprocessors and controllers … | |
[code] #include <iostream> using namespace std; int main () { bool a = true; cout << ("Multiply = 1 or Divide = 2 ?\n"); cin >> a; if( a = "true") { goto Multiply; } else { goto Divide; } } :Multiply double x; double y; cout << ("Please Enter … | |
Re: [CODE] for(int i = 0; i < 3; i++){ //what you need to be repeated } [/CODE] 1) initialises the "for loop" int i = 0; initialises the i which is the number used ot monitor the repititions past. 2) the code you need performed...remmeber the ";" at the end … | |
Re: what you need is this... do second one first... set 2 attributes: double x double y methods you should programme are: constructors getX() getY() setX() setY() toString() first one... create a class with 3 attributes which are all doubles... create the same as above except in the toString, instead of … | |
Re: [url]www.netbeans.org[/url] create new project in it, and right click the package name on the left hand side and make new "Jpanel" or "Jframe" and this will give you a GUI based GUI builder...any success compiling with it, then look at my thread on making my own taskbar any corrections via … | |
I have been searching for a community for years, I settled at hackforums among the flamers and snobs...I found this site, now that I have seen the posts I know this is where I should be. I am studying Computer Science, I am in my second year, starting SQL now … | |
Re: constructors: When you use classes in future applications in Arrays/ArrayLists(for now, consider "String" is a class) the Class, to be used must first be created, as a class is only a blueprint...when you create it, then it can be used (can you live in a blueprint peice of paper). it … | |
Re: the runtime environment is the key here, you need to make a runtime environment for each processor architecture which is compatible with all OS's which that Architecture can run. and aslong as all your runtime environments accept the same software input for operation then I see no problems in this, … | |
I use the IDE Netbeans and as a personal project I want to create an application in java similar to "Mac OSX" dock bar. I dont know how to run the coding using the GUI...all I have done so far are database structures and commandline programming. I will need to … |
The End.