Newbie to java programming

Hi
I'm completely new to Java programming, I have worked for a year in Qbasic, but that is like kids play kind of programming, im unsure as to the similarities/differences between the 2 languages.
Also: I know that Java is an "Object oriented" form of programming, can anyone explain what this means?
Im going to start at the beginning of the manual, is it ok if i come here and ask questions if im stuck with anything? I don't know what the community is like here...
Thanks,
Chloe

Here are some good introductions to OOP:
Object-Oriented Programming Concepts
Object-oriented language basics
Don't Fear the OOP
And here are some other great resources for beginning Javites:
http://java.sun.com/docs/books/tutorial/
http://java.sun.com/developer/onlineTraining/Programming/BasicJava1/compile.html
http://java.sun.com/learning/new2java/index.html
http://javaalmanac.com
http://www.jguru.com
http://www.javaranch.com
Bruce Eckel's Thinking in Java
Joshua Bloch's Effective Java
Bert Bates and Kathy Sierra's Head First Java
Good luck, and Happy Coding!
§

Similar Messages

  • Newbie for java program!!

    Can anyone help me how to start programming and to familiar with java coding.now iam practicing small stubs like that...

    http://www.google.com/search?q=java+tutorial&btnG=Search+the+Web

  • Java program in UNIX environment

    Hi All,
    Could you please help me with how to configure a java program in UNIX environment..
    that is to schedule it to run every day from cron..
    I need to know what are the basic things we require to achieve the above..
    I guess it is:
    A script
    A config file containing db login details
    oher than this I don?t know what is required plz help

    You can execute any jar or class file with cron. If you are using a jar you might use something like java -jar /usr/bin/myapp.jar .
    I use Linux, this is my area of expertise.
    Here is an online guide "for complete newbies" on how to set up cron.
    http://www.unixgeeks.org/security/newbie/unix/cron-1.html
    Hope it helps.

  • Java programming language main method question?

    Hello everyone I am quite new to the Java programming language and I have a question here concerning my main method. As you can see I am calling 4 others methods with my main method. What does the null mean after I call the method? I really don't understand is significance, what else could go there besides null?
    public static void main(String[] args)
              int cansPerPack = 6;
              System.out.println(cansPerPack);
              int cansPerCrate = 4* cansPerPack;
              System.out.println(cansPerCrate);
              have_fun(null);
              user_input(null);
              more_java(null);
              string_work(null);
         }Edited by: phantomswordsmen on Jul 25, 2010 4:29 PM

    phantomswordsmen wrote:
    ..As you can see I am calling 4 others methods with my main method. 'Your' main method? Your questions indicate that you did not write the code, who did?
    ..What does the null mean after I call the method?.. 'null' is being passed as an argument to the method, so there is no 'after the method' about it.
    ..I really don't understand is significance, what else could go there besides null? That would depend on the method signatures that are not shown in the code snippet posted. This is one of many reasons that I recommend people to post an SSCCE *(<- link).*
    BTW - method names like have_fun() do not follow the common nomenclature, and are not good code for a newbie to study. The code should be put to the pointy end of your sword.

  • Java Programming Book Recommendation

    I'm looking for a good java programming book that covers more than the basics. In my CS110 class we went through the book:
    Java Programming - From Problem Analysis to Programming Design
    by: D.S. Malik
    I'm looking to expand upon this and was hoping someone was able to point me in the right direction of reading material.
    Thanks!

    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com . A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.
    James Gosling's The Java Programming Language. Gosling is
    the creator of Java. It doesn't get much more authoritative than this.

  • Call Java program in APEX

    Hi, I am an APEX newbie... I need to call a Java program (.JAR file) from a PL/SQL script inside an APEX application. My question is, does the JAR file need to be in a particular place (and if so, what's the best way to get it there)?
    - somewhere in the APEX database?
    - somewhere in the production database (9i)?
    - could it be called if it resides on a shared network drive?
    Any help would be appreciated... everything I've found thus far tells me to use the loadjava tool to get it onto the prod. database, but I want to make sure that there isn't an easier option as I've had some trouble with that.
    Thanks in advance...
    Kenny

    Hi,
    If you want to call the method of the java class that is stored in the jar you have to make this jar file accessible to the client.
    1/ The jar file can be stored in the database by using loadjava utility
    E.g. loadjava -u scott/tiger -resolve yourjavapackage.jar
    More details on http://www.oracleutilities.com/OSUtil/loadjava.html
    and http://www.csee.umbc.edu/help/oracle8/java.815/a64683/tools1.htm
    1.1/ Once the jar file is in the database you can access it's object methods by defining the pl/sql function that is able to call particular java method
    E.g.
    FUNCTION jCreateDir (dir varchar2, checkExistsOnly number, grantRootDir varchar2)
    RETURN NUMBER as LANGUAGE java
    NAME 'mypkg.Utils.createDirectory(java.lang.String, int, java.lang.String) return int';
    Above function then calls the java method defined in the class included in the jar file (jar file is just an archive of the java classes - to bundle several classes, images... in one file)
    The example contents of the java class
    package mypkg;
    import java.io.File;
    public class Utils {
    public static int createDirectory(String dir, int checkExistsOnly, String grantScriptDir)
    ///some code here
    1.3/ So if you know what method to call, what are the input parameters and return value you can create your calling procedure/function in pl/sql
    I am not very sure if you can load jar files containing the classes that render some user interface items(buttons,panels etc - items from awt or swing package) so basicaly load just the code that performs actions like computation/ xml transformation/ file I/O so anything that does not require GUI items.
    2/ If your jar file contains the objects that display some user interface control or you need to call the java from the javascript then you need to embed your jar file in the html code by using <OBJECT > or <APPLET> tag
    Re: Open program in FF
    Rado

  • Need help in java programming..

    Hi all
    I am a newbie to java.
    I have to develop a software which on installation will insert a icon in other software( lotus notes mail client) and when this icon will be clicked, it will prompt the software.
    Its something like when you install adobe pdf creater ,it insert its icons in Microsoft office suite like word, outlook etc and when u click the icon( create pdf) it prompts pdf creater to create the file.
    My question is how to program this ?
    On installing my software will run a script which will modify the code of lotus notes but how to wirte the script, i dont know.
    As i said, i am new to java and still learning, so I will really appreciate your help.
    Regards
    Sachin

    They create VB macros (usually) and place them in the default template directories for the appropriate software (or possibly, references to them in the registries for those softwares). And those, are Microsoft topics, find another forum.

  • Can any Java program be able to auto generate objects?

    Like to check if
    Java program is be able to auto generate objects?

    Take example: Point = constructor
    Point p =new Point ();
    so p is tne name of the object. Er... rite??"p" is the name of a variable. This is a refrence to an object (a instances of a class).
    If you are asking what I think you are asking, look at Map. (Collections tutorial)
    Please don't take offence, but I recomend taking a read of
    Resources for Beginners
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java. This one has been getting a lot of very positive comments lately.

  • Java Programming Guidance requested

    Hi guys,
    Hey could you guide me on getting started to java programming on a fast track.
    i have got very familiar with all the concepts and fundamentls of the language but still dont feel confident.Can any one suggest me where i can have sample codes or small sample demonstration projects which uses classes,interfaces,abstract classes and all the other fundamentls of java ie super(), this, static, final etc.In this way i guess i can understand the concepts better.Also at initial level which are the packages that need to be surfed mostly and mostly used.
    Can any one guide me in this direction
    thanking you guys in advance
    yash

    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.
    James Gosling's The Java Programming Language. Gosling is
    the creator of Java. It doesn't get much more authoratative than this.

  • Running java program with arguments in Unix

    Hi
    I am a new newbie to java so pardon if this is too simple for you .
    This is my scenario. I have a java program which parses an xml and writes a .dat file. I execute this testparser.java in unix environment like this
    java testparser xml1.xml
    and it retuns me a .dat file
    But my issue is I have to run my parser program for 40 xml files. The requirement is I have to create a script file and possibly with a for loop which will loop through 1-40 xml files and return me the .dat file.
    I am really at a loss here. I am new both to Java and Unix
    So pls help me out
    Thanks in Advance
    G

    You could just do this in Java. Make it take all 40 xml files on the command line, and convert them all with one program invocation.
    If you want to do it in shell script, you can do something like
    for tmp in `ls -1 *.xml`; do
      java testparser $tmp
    donedepending on your shell, etc.

  • Interested in Learning Java Programming.

    Hello All,
    I a college student and I am interested in learning Java programming. Where would be a good place for me to start?
    Thanks

    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.

  • Method to get working Java program on a PDA

    Hello all,
    I am attempting to create a java program for my PDA. I'm trying to use CrEme to do it but I am having many many problems with it. I've looked on the forums and they all appear to be posts where people have some clue. I have none.
    For example. Can you use any sdk to develop the program. Can you simply develop a desktop app and convert it to use on a PDA?
    Once CrEme is downloaded what do you have to add to the classpath on your desktop to compile with it. Up till now I've simply compiled with the standard java system using %javac my_app.java
    What do you type in the command line to run the emulator?
    In what form should you port the program to your pda? I've tried using .jar files. I load it and nothing happens. What do I have to type in the jRun command? Whats a .lk file and how do I use it?
    So many questions so little time. I am genuinly confused by all this and some help would be appreciated. I have looked around the internet and can find little or nothing to help a pda newbie . Incidently if I have missed anything online and this is all just wasting someones time, could they show me where I've missed it?
    Thanks a lot
    N

    I built a lot of applications to run on my PDA (Sharp Zaurus SL5500). When I first got the PDA I didn't know any Java. What I do, and it may not be useful to you, is to develop on my desktop using as few classes not supported in 1.0 as I can get away with. That seems to make the code runnable on the Zaurus JVM (which is JEODE). I don't use an interactive development environment (I never have gotten the hang of them); I just use a text editor that supports syntax highlighting (CONTEXT). Then I copy the compiled classes to the PDA and run them there.

  • Run java program overnight

    Hey,
    I left my office yesterday evening leaving my macbook on
    while it was running a java program that it's supposed to requires between 2 and 3 hrs.
    This morning not only the program was still running (hard to believe it takes more than 12 hrs!)
    but when I typed in the shell the 'ps -all' command
    it says the program has been running for around 30 mins, and now it's still running!
    Is it possible that with certain settings the mac stops its processes after a while?
    What should I check?
    Thanks for helping, I'm actually a newbie in the mac world:)
    g

    How many of the links here have you tried while you were waiting for an answer?
    http://www.google.com/search?q=running+java+program+as+windows+service
    (Note that the query is a direct copy/paste from your post.)

  • [Newbie] Which JAVA API is a good choice for creating a game board?

    I'm a newbie in JAVA game programming.
    I would like to create a chess game for fun. I have a fairly good idea on how I want it to be, but I'm having some difficulty on the game board.
    I am not sure which set of JAVA API I should be using to design my board. I guess that the board will sits in the back, and in the front, there'll be my chess pieces that I can drag and drop.
    Should I be using JAVA Swing to do this? or JAVA 2D API? It will require some study for either one, so I figure I should pick a good one to learn.
    Thanks in advance! :-)

    Also if you would like to create a much simpler, 2D chess game, I would suggest you use the Swing API, which comes with Java from version 1.2 and on up. Naturally I would suggest at least using the latest 1.4 or 1.5 software development kit, because they have greater and more stable features, bug fixes and so on. I also would suggest you go to the library or Barnes and Noble nearest you, and pick up a book on Java. One recommendation that may be simpler to get an understanding of Java is from Deitel and Deitel: http://www.deitel.com/books/jHTP6/ though my beginner's Java book was geared directly toward how to program games (small games like memory, or tetris), though I can't remember what it was called. Anyway I believe it is very important to learn the basics of Java before you get into things that you may or may not understand. My opinion, so have a go at it.

  • Error while running a Java Program

    Can anyone help me,
    I am getting the following error while running a Java program, Below is the exception thrown, please help.
    java.nio.BufferOverflowException
    at java.nio.Buffer.nextPutIndex(Buffer.java:425)
    at java.nio.DirectByteBuffer.putChar(DirectByteBuffer.java:463)
    at org.jetel.data.StringDataField.serialize(StringDataField.java:295)
    at org.jetel.data.DataRecord.serialize(DataRecord.java:283)
    at org.jetel.graph.DirectEdge.writeRecord(DirectEdge.java:216)
    at org.jetel.graph.Edge.writeRecord(Edge.java:288)
    at com.tcs.re.component.RESummer1.run(RESummer1.java:505)
    java.nio.BufferOverflowException
    at java.nio.Buffer.nextPutIndex(Buffer.java:425)
    at java.nio.DirectByteBuffer.putChar(DirectByteBuffer.java:463)
    at org.jetel.data.StringDataField.serialize(StringDataField.java:295)
    at org.jetel.data.DataRecord.serialize(DataRecord.java:283)
    at org.jetel.graph.DirectEdge.writeRecord(DirectEdge.java:216)
    at org.jetel.graph.Edge.writeRecord(Edge.java:288)
    at com.tcs.re.component.RECollectCont.run(RECollectCont.java:304)

    Ok, let's see. Write the following class:
    public class Grunt {
      public static void main(String[] args) {
        System.out.println("Hello Mars");
    }Save it as "C:\Grunt.java", compile by typing:
    javac c:\Grunt.javaRun by typing:
    java -classpath "C:\" GruntDoes it say "Hello Mars"? If yes, go back to your program and compare for differences (maybe you used the "package" statement?).
    Regards

Maybe you are looking for

  • How do i turn off sound and text notifications?

    I find both the text and sound notifications very annoying. I do not play games or do anything other than work on this computer. When I unchecked the "show a notification" and "play a sound" boxes, the notifications and sounds do not turn off. I also

  • Webvpn GW's on one router with domain names

    Hi, I'm trying to configure multiple WebVPN gateways on one router using one front door VRF and multiple back door VRF's. Think of this like a cloud service provider with several customers using different VRFs and one Internet VRF used for the incomi

  • Rounding in Invoice

    How to add "Rounding" field in the invoice? In US Demo I have this field and I want to define it in Canadian company thanks, Olga

  • Career as FLEX Developer

    hi can any one help me..am pradeep am a B.sc Computer science graduate 2008 passout.currently working in a small consultancy as a process associate. i want to start my career as a FLEX developer.. my doubt is being a 2008 passout candidate can i star

  • PS Progress Analysis -

    Dear Guru's, I am facing problem while executing the Progress Analysis report in SAP PS for one of our client. I am getting only the Schedule plan value and actual... rest of the column like BCWS, ACWS are comming blank which is important for client.