• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Need some help.

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am taking a Java class in which I am a bit lost. I have done some C++ programming as well as code in VB. I am using NetBeans to write and run the programs. First I don't know how to start a project in netbeans. Second I don't understand the process of adding the class structure the Professor has given us. The only thing I can do is mount the file system.
I did the Hello World Program and turned it in but I couldn't get it to run or print out the results.

I am not new to programming. I just dont seem to be getting the grasp of Java that this instructor is teaching. Can anyone help me?
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, you've come to the right place. However, your display name does not follow our Naming Policy. So we'll need you to click here and change that just as soon as possible.

I am using NetBeans to write and run the programs.

I would highly advise against this. Learning a new programming language can be daunting on its own without the additional effort needed to learn an IDE. I would suggest using something as simple as Notepad (if in windows) or vi (if in Linux). This alleviates the need to create projects when your just doing homework assignment where there is really no need for a project.

Second I don't understand the process of adding the class structure the Professor has given us.

So what is this "class structure" you speak of?
 
Chris Tian
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well since the class requires us to write using Netbeans I really don't have a choice but to use it.

The class structure is the staugIO folder that the instructor requires us to mount when starting a project. I was under the impression that it had the class and methods we would us in our project assignments.

Here is the first assignment and it seems pretty basic but I don't know where to start as far as begining the project.

Create a program that allows the user to vote for one of 5 entries. Users are voting for the best Internet Search engine. Code for one attempt only.

1. Excite
2. Google
3. Hotbot
4. KartOO
5. Lycos

Am I to understand that by doing a java program that you may not always create an applet? I have seen some java done that seems to use the command prompt.

I do not want anyone to do the code for me I just want to be shown the necessary direction to take in order to program these projects.

Thanks for the help.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Chris Tian:
Well since the class requires us to write using Netbeans I really don't have a choice but to use it.

The class structure is the staugIO folder that the instructor requires us to mount when starting a project. I was under the impression that it had the class and methods we would us in our project assignments.

Here is the first assignment and it seems pretty basic but I don't know where to start as far as begining the project.

Create a program that allows the user to vote for one of 5 entries. Users are voting for the best Internet Search engine. Code for one attempt only.

1. Excite
2. Google
3. Hotbot
4. KartOO
5. Lycos

Am I to understand that by doing a java program that you may not always create an applet? I have seen some java done that seems to use the command prompt.

I do not want anyone to do the code for me I just want to be shown the necessary direction to take in order to program these projects.

Thanks for the help.



There are numerous different types of java programs. There are command line driven programs, applets, Desktop GUI Apps (AWT/SWING), and web applications (J2EE).

I can't believe your instructor is requiring an IDE like Netbeans for a beginner class. But that aside since you must use it, is it just mounting the file system to start with that you are having a problem with?

I would start by going to your explorer, command prompt, or whatever where you will manually create folders. Create a folder and call it whatever you want (project1, votingapp, etc). Then, simply go into netbeans and mount that folder as the working filesystem. I don't use netbeans, so I am afraid I won't be much help beyond that. If you have further Netbeans specific questions, you would be better off asking them in the IDEs and Other Tools forum. The ranchers that hang out in that forum will know quite a bit about Netbeans.

If you have more general Java questions that aren't related to Netbeans specifically, you can continue to ask in this forum and as you get further along, be sure and check out the other forums we have to better place your questions. For example, if you are working on an Applet, you may end up needing to ask questions in our Applet forum. Doing this will help you get the best answers and the fastest possible response time.

Good luck and let me know if I can be of any more help.
 
Ranch Hand
Posts: 808
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java can run in one of two ways: an Applet, which runs in a Web browser's JVM, and an application, which runs standalone, much like any executable file. An application can accept command-line arguments upon startup through an array of Strings passed to the main method, which is analogous to the main() or winMain() function in C/C++.

Sun has great, free, downloadable tutorials on their java.sun.com site. I highly recommend getting these tutorials, and read Your First Cup of Java and the applet and application overviews.

Good luck!
 
Jeff Bosch
Ranch Hand
Posts: 808
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey, Chris -

Have you visited the NetBeans Site? They have some good info there.

Good luck!
 
Chris Tian
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Im reading a lot of sites now. Mind if I post some of my code later for review?
Should I post code in another spot?

Gorilla Belly
 
Jeff Bosch
Ranch Hand
Posts: 808
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Depends on the code and the length. We can't post code from real exams, and we try to keep it short for easier reading. Also, please note that long lines of code don't wrap -- your readers will have to scroll horizontally, and that turns a lot of people off from reading code.

Also, sometimes code questions belong in specialized threads, but any beginner stuff can go here.

Hope that helps.
 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Gorilla Belly:
I am taking a Java class in which I am a bit lost. I have done some C++ programming as well as code in VB. I am using NetBeans to write and run the programs. First I don't know how to start a project in netbeans. Second I don't understand the process of adding the class structure the Professor has given us. The only thing I can do is mount the file system.
I did the Hello World Program and turned it in but I couldn't get it to run or print out the results.

I am not new to programming. I just dont seem to be getting the grasp of Java that this instructor is teaching. Can anyone help me?



I think, you tight with IDE much more.

You shoud use simple IDE to code/ run java program such as Eclipse, Text Editor.

Simple IDE is easy to use and quick learning.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic