• Post Reply Bookmark Topic Watch Topic
  • New Topic

Class hierarchy ?  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a complete noob (as of today) so my apologies if you need more detail or need me to explain my question further.

I would like to get started with designing some software that I have wanted to create for some time now. It would basically just be mathematical calculations, maybe with graphics that correspond to them at some point but that it is a long way off. I would like to start off building it correctly from the beginning rather than have to back track or move stuff around too much later. Please keep in mind that for the most part I do not know a thing about Java or anything outside of basic web development html,css,some php, limited sql. So basically all programming is new to me.

I have installed eclipse IDE and so far all I have done is the Hello world tutorial because meh...why not.

I have done a bit of reading this evening trying to figure out how "in my own words" I should be organizing this. As I am understanding it I would start with a new project. I would assume the new project should be named "Software Name". Inside the project you have the source folder or "src". In the src folder you have your packages. Here is where my question lies. One of the abilities of the software I wish to create is to select between 2 different equations say, with a radio button or check box. Simply put, "do you want to used Equation 1 or Equation 2". From there you can enter your variables and perform the calculation. What is the actual term for each of these calculations in java or what would each be defined as?

What I imagine is this basically.

ProjectName (project name)
    
---src (source)
      
-----EquationChoice (package)

---------EquationChoice.java *(Not sure) What is this called exactly?

------------------Equation 1 (Class)?

------------------Equation 2 (Class)?

-------------------------main(String[]) : void (not sure if this should be under each class*? or not) What is this called exactly?


Or would Equation 1 and Equation 2 be part of different packages?

Most everything I have read up on tonight seems to assume I already somewhat know what I am doing and I find the whole thing a little tough to wrap my head around.

This seems to be answering what I am asking but I am having a little trouble trying to comprehend it.

I am sure I will have more questions after your comments.
 
H. Case
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I cant seem to find a way to edit the post but to elaborate a little further...

I need to be able to input number variables into the equations and the output of the equations would be used as a variable in other equations if this helps at all.

I have had working versions of this I made in excel because I was bored and tired of doing everything with a calculator but I would like to add more functionality to it as well as just get away from using excel for it all.  I figure as a bonus I might be able to learn some java in the process.
 
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

It looks like you first need to study the basics of Java. First, make sure you understand classes, methods, variables etc. before you attempt to create a larger program - if you try to learn too many things at once it may become overwhelming and frustrating.

Have a look at Oracle's Java Tutorials - especially the lessons in the trail Learning the Java Language to learn the concepts that make up the Java programming language.

Java classes are written down in source files. EquationChoice.java would be the name of a source file. Not every class needs a main() method - in fact, normally only one of the classes of a project has a main() method. The main() method is the entry point of an application - the method that is called when your Java program is started.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!