Java Programming Book:

Does anyone know if there is/will be an update to the <u>Java Programming with the SAP Web Application Server</u> book anytime soon to cover the Composite Environment?

Hi Richard,
Good news, the book is in work.
Regards, Katarzyna

Similar Messages

  • 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.

  • Java learning book

    Can anyone recommend a good java programming book?
    Thanks.

    i recommend
    osborne press - java2 Complete reference
    wrox - Beginning jdk 1.5
    prentice hall - Introduction to java programming comprehensive version (if you alredy know little but about java)
    and - Java2 How to program
    theses are the extreemly good books pick any one and read cover to cover. after reading and understanding one of these books you should be able to have a strong knowledge about java.

  • Subtle bug in Deitel & Deitel "Java How to Program" book

    Merry x mas and happy new year, guys.
    I have this applet (which is at the same time runnable and listener) its printed in Deitel & Deitel "Java How to Program" book 3rd ed.
    The program works but as you turn on and off the "suspend" checkboxes some of the threads are not notified, so they go to infinite wait state, deadlock. I couldn't figure out what is wrong or how to fix the problem.. please read the code below, or copy and paste this code to your eclipse, its just one file, then play with the check boxes, some of the threads don't wake up after wait... technically they don't shift from WAITING to TIMED_WAITING state.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    * @author
    // Fig. 15.7: RandomCharacters.java
    // Demonstrating the Runnableinterface
    public class RandomCharacters extends JApplet implements Runnable, ActionListener {
        private String alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
        private JLabel outputs[];
        private JCheckBox checkboxes[];
        private final static int SIZE = 3;
        private Thread threads[];
        private boolean suspended[];
        public void init() {
            outputs = new JLabel[SIZE];
            checkboxes = new JCheckBox[SIZE];
            threads = new Thread[SIZE];
            suspended = new boolean[SIZE];
            Container c = getContentPane();
            c.setLayout(new GridLayout(SIZE, 2, 5, 5));
            for (int i = 0; i < SIZE; i++) {
                outputs[i] = new JLabel();
                outputs.setBackground(Color.green);
    outputs[i].setOpaque(true);
    c.add(outputs[i]);
    checkboxes[i] = new JCheckBox("Suspended");
    checkboxes[i].addActionListener(this);
    c.add(checkboxes[i]);
    public void start() {
    // create threads and start every time start is called
    for (int i = 0; i < threads.length; i++) {
    threads[i] = new Thread(this, "Thread " + (i + 1));
    threads[i].start();
    public void run() {
    Thread currentThread = Thread.currentThread();
    int index = getIndex(currentThread);
    char displayChar;
    while (threads[index] == currentThread) {
    // sleep from 0 to 1 second
    try {
    Thread.sleep((int) (Math.random() * 1000));
    synchronized (this) {
    while (suspended[index]
    && threads[index] == currentThread) {
    wait();
    } catch (InterruptedException e) {
    System.err.println("sleep interrupted");
    displayChar = alphabet.charAt(
    (int) (Math.random() * 26));
    outputs[index].setText(currentThread.getName() + ": " + displayChar);
    System.err.println(currentThread.getName() + " terminating");
    private int getIndex(Thread current) {
    for (int i = 0; i < threads.length; i++) {
    if (current == threads[i]) {
    return i;
    return -1;
    public synchronized void stop() {
    // stop threads every time stop is called
    // as the user browses another Web page
    for (int i = 0; i < threads.length; i++) {
    threads[i] = null;
    notifyAll();
    public synchronized void actionPerformed(ActionEvent e) {
    for (int i = 0; i < checkboxes.length; i++) {
    if (e.getSource() == checkboxes[i]) {
    suspended[i] = !suspended[i];
    outputs[i].setBackground(
    !suspended[i] ? Color.green : Color.red);
    if (!suspended[i]) {
    notify();
    return;
    Thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Abiel wrote:
    No, notifyAll() is used to tell the threads that we're stopping.... see that it's written in the stop() method of the applet. Eg if the user browses away from our applet we set the array of threads to null and notify them all. So notifyAll() makes sense.Yes, it does make sense there too (!!!!!!!).
    However, I gave it a try with what u suggested, and it didn't work (as expected) .... Apparently you did not really read my suggestion or my explanation. If you had, you'd have expected it to work and it would have worked.
    the problems still remains, some threads are getting in wait state even if their check box is not suspended.Maybe you should add the following code to understand the root cause and solution.
        System.out.println("Thread " + index + " will wait to be notified.");
        wait();
        System.out.println("Thread " + index + " was notified.");
    what could the problem be?Improper use of notify()
    With kind regards
    Ben

  • Any news on when Java 1.4 Game Programming book will be out?

    I tried to go to the publisher's web site, but they didn't have any information on it and it looks like the publisher (The Republic of Texas) has been sold.
    Does anyone know when this book will be available? I wrote to Amazon.com with this question as well.
    Thanks.

    I disagree, but only partly.
    Here's why I diasagree :
    What exactly is that core API? And what's so important about it? If it is the standard set of clases provided by the jre : No, you don't have to know most of them to write Java programs. You'd be surprised if you knew how few of the jre classes I know, and I've managed to write Tube Blazer.
    I think you have to learn something else to write programs : Todays computers / operating systems all implement the same key concepts (variables, pointers, tasks, interfaces ...) and you find the very same concepts in almost every programming language. Once you've grasped them and how to use them in a given family of programming languages, you can start using one of the languages from that family. Looking up specific classes / commands is in theory no more challenging than looking up words for a foreign language you are basically able to speak. In theory, because with a natural language you can use a word from your own language as a reference or a word of similar meaning to find the foreign word. If finding the right commands for implementing something was that simple, noone would need programming books for specific parts of a programming language - the language documentation would explain it all in a form that was easily accessible.
    Here is why I agree :
    If you read a book and you don't understand the concepts it is based on (the Black Art book is a good example from this thread) you won't understand it, unless the book explains them to you. I also agree because when writing your first programs you make a lot of mistakes and you learn how to find mistakes. Without that ability trying to write large programs is frustrating and/or hopeless.

  • New TO JAVA Programming

    Dear Forummembers,
    I am student doing postgraduate studies in IT.i have some queries related to one of my programming staff.i am very much new into Java programming and i am finding it a bit difficult to handle this program.The synopsis of the program is given below -
    You are required to design and code an object-oriented java program to process bookings for a theatre perfomance.
    Your program will read from a data file containing specifications of the performance,including the names of the theatre, the play and its author and the layout of the theatre consisting of the number of seats in each row.
    It will then run a menu driven operation to accept theatre bookings or display the current
    status of seating in the theatre.
    The name of the file containing the details of the performance and the theatre should be
    provided at the command line, eg by running the program with the command:
    java Booking Theatre.txt
    where Theare.txt represents an example of the data file.
    A possible data file is:
    Opera
    U and Me
    Jennifer Aniston
    5 10 10 11 12 13 14
    The data provided is as follows
    Line 1
    Name of the Theatre
    Line 2
    Name of the play being performed
    Line 3
    Name of the author of the play being performed
    Line 4
    A list of the lengths (number of seats) of each row in the theatre, from front to
    back.
    The program must start by reading this file, storing all the appropriate parameters and
    establishing an object to accept bookings for this performance with all details for the theatre
    and performance.
    The program should then start a loop in which a menu is presented to the user, eg:
    Select from the following:
    B - Book seats
    T - Display Theatre bookings
    Q - Quit from the program
    Enter your choice:
    And keep performing selected operations until the user�s selects the quit option, when the
    program should terminate.
    T - Display Theatre bookings
    The Display Theatre Bookings option should display a plan of the theatre. Every available
    seat should be displayed containing its identification, while reserved seats should contain an
    Rows in each theatre are indicated by letters starting from �A� at the front. Seats are
    numbered from left to right starting from 1. A typical seat in the theatre might be designated
    D12, representing seat 12 in row D.
    B - Book seats
    The booking of seats is to offer a number of different options.
    First the customer must be asked how many adjacent seats are
    required. Then start a loop offering a further menu of choices:
    Enter one of the following:
    The first seat of a selected series, eg D12
    A preferred row letter, eg F
    A ? to have the first available sequence selected for you
    A # to see a display of all available seats
    A 0 to cancel your attempt to book seats
    Enter your selection:
    1. If the user enters a seat indentifier such B6, The program should attempt to
    reserve the required seats starting from that seat. For example if 4 seats are
    required from B6, seats B6, B7, B8 and B9 should be reserved for the customer,
    with a message confirming the reservation and specifying the seats reserved..
    Before this booking can take place, some testing is required. Firstly, the row
    letter must be a valid row. Then the seat number must be within the seats in the
    row and such that the 4 seats would not go beyond the end of the row. The
    program must then check that none of the required seats is already reserved.
    If the seats are invalid or already reserved, no reservation should be made and the
    booking menu should be repeated to give the customer a further chance to book
    seats.
    If the reservation is successful, return to the main menu.
    2. The user can also simply enter a row letter, eg B.IN this case, the program should
    first check that the letter is a valid row and then offer the user in turn each
    adjacent block of the required size in the specified row and for each ask whether
    the customer wants to take them. Using the partly booked theatre layout above, if
    the customer wanted 2 seats from row B, the customer should be offered first:
    Seats B5 to B6
    then if the customer does not want them:
    Seats B10 to B11
    and finally
    Seats B11 to B12
    If the customer selects a block of seats, then return to the main menu. If none are
    selected, or there is no block of the required size available in the row, then report
    that no further blocks of the required size are available in the row and repeat the
    booking menu.
    3. If the user enters a ? the program should offer the customer every block of seats
    of the required size in the whole theatre. This process should start from the first
    row and proceed back a row at a time. For example, again using the partially
    booked theatre shown above, if the user requested 9 seats, the program should
    offer in turn:
    Seats A1 to A9
    Seats C1 to C9
    Seats C2 to C10
    Seats E3 to E11
    Seats E4 to E12
    If the customer selects a block of seats, then return to the main menu. If none are
    selected, or there is no block of the required size available in the whole theatre,
    then report that no further blocks of the required size are available and repeat the
    booking menu.
    4. If the user enters a # the program should display the current status of the seating
    in the theatre, exactly the same as for the T option from the main menu and then
    repeat the booking menu.
    5. If the user enters a 0 (zero), the program should exit from the booking menu back
    to the main menu. If for example the user wanted 9 seats and no block of 9 was
    left in the theatre, he would need to make two separate smaller bookings.
    The program should perform limited data validation in the booking process. If a single
    character other than 0, ? and # is entered, it should be treated as a row letter and then tested
    for falling within the range of valid rows, eg A to H in the example above. Any invalid row
    letters should be rejected.
    If more than one character is entered, the first character should be tested as a valid row letter,
    and the numeric part should be tested for falling within the given row. You are NOT
    required to test for valid numeric input as this would require the use of Exception handling.
    You are provided with a class file:
    Pad.java
    containing methods that can be used for neat alignment of the seat identifiers in the theatre
    plan.
    File Processing
    The file to be read must be opened within the program and if the named file does not exist, a
    FileNotFoundException will be generated. It is desirable that this Exception be caught and
    a corrected file name should be asked for.
    This is not required for this assignment, as Exception handling has not been covered in this
    Unit. It will be acceptable if the method simply throws IOException in its heading.
    The only checking that is required is to make sure that the user does supply a file on the
    command line, containing details of the performance. This can be tested for by checking the
    length of the parameter array args. The array length should be 1. If not, display an error
    message telling the user the correct way to run the program and then terminate the program
    System.exit(0);
    The file should be closed after reading is completed.
    Program Requirements
    You are expected to create at least three classes in developing a solution to this problem.
    There should be an outer driving class, a class to represent the theatre performance and its
    bookings and a class to represent a single row within the theatre.
    You will also need to use arrays at two levels. You will need an array of Rows in the Theatre
    class.
    Each Row object will need an array of seats to keep track of which seats have been reserved.
    Your outer driving class should be called BookingOffice and should be submitted in a file named BookingOffice.java
    Your second, third and any additional classes, should be submitted in separate files, each
    class in a .java file named with the same name as the class
    I am also very sorry to give such a long description.but i mainly want to know how to approach for this program.
    also how to designate each row about it's column while it is being read from the text file, how to store it, how to denote first row as row A(second row as row B and so on) and WHICH CLASS WILL PERFORM WHICH OPERATIONS.
    pls do give a rough guideline about designing each class and it's reponsibilty.
    thanking u and looking forward for your help,
    sincerely
    RK

    yes i do know that........but can u ppl pls mention
    atleast what classes shud i consider and what will be
    the functions of each class?No, sorry. Maybe somebody else will, but in general, this is not a good question for this forum. It's too broad, and the question you're asking is an overall problem solving approach that you should be familiar with at this point.
    These forums are best suited to more specific questions. "How do I approach this homework?" is not something that most people are willing or able to answer in a forum like this.

  • A JAVA PROGRAM TO CONTROL SYSTEM EVENTS OF WIDOWS XP

    Hello everyone.
    The question is: can I develop a java program that can control system events of a windows environment? For example a program to shut down the computer, log off or open and close windows applications?
    If so, how can i do that??
    please help me. Your help is appreciated in advance.
    thanks.
    Wakariuki

    Hi,
    If you want to make native calls, you can use JNI (Java Native Interface).
    Using JNI, you call call any C/C++ funtions.
    Please visit, http://java.sun.com/docs/books/jni/ for JNI structure. To program using JNI, read the book given in the link. It is very useful for beginners.

  • A JAVA PROGRAM TO CONTROL SYSTEM EVENTS OF WIDOWS environment

    Hello everyone.
    The question is: can I develop a java program that can control system events of a windows environment? For example a program to shut down the computer, log off or open and close windows applications?
    If so, how can i do that??
    please help me. Your help is appreciated in advance.
    thanks.
    Wakariuki

    Hi,
    If you want to make native calls, you can use JNI (Java Native Interface).
    Using JNI, you call call any C/C++ funtions.
    Please visit, http://java.sun.com/docs/books/jni/ for JNI structure. To program using JNI, read the book given in the link. It is very useful for beginners.

  • Java program not working using newer version of scheduler (AutoSys)

    A little background: I'm in the middle of trying to upgrade our AutoSys server (scheduler) to the latest version (version R4 to R11) and have to do regression testing to ensure our jobs will work in the new version. There's a small java program that is not working supposedly due to the following error:
    Exception in thread "Main Thread" java.lang.NoClassDefFoundError: com/f1j/swing/common/JDKAdapter
    at com.f1j.swing.common.Adapter.<clinit>(Adapter.java:86)
    at com.f1j.swing.engine.ss.JBook.<init>(JBook.java:3032)
    at com.f1j.swing.engine.ss.JBook.<init>(JBook.java:3096)
    at com.test.Foo.performScan(Foo.java:122)
    So in the old version (R4), it runs fine. In R11, I get the exception above. The CLASSPATH matches and I've verified that by echoing it in the shell script that calls the java program. Here's how it's called in the shell script.
    echo $CLASSPATH
    ${JAVA_HOME}/bin/java com.test.Foo
    So the Foo class was written by me, which makes use of this external library called f1j11swing.jar (for spreadsheet creation).
    The source of the error is from this line in Foo (line 122):
              book = new com.f1j.swing.engine.ss.JBook();
    The funny part is JDKAdapter (the missing class) is in the same jar file as JBook, so it definitely finds the library in the classpath. But for some reason, this new AutoSys version is spitting out this error. I've exhausted many approaches to resolving this, but I'm still stuck.
    Here's the layout of how things are called (should be same for R4 and R11):
    1. AutoSys server logs into client machine XYZ as user arnold
    2. arnold (AutoSys client) on XYZ executes shell script to call java program
    The only significant difference I see is that the AutoSys server in R4 is HP while the R11 server is Sun. However, it shouldn't matter because the client server they're logging into to execute the script is the same linux server.
    Does anyone have any ideas? I've already started dialogue with the vendor and it seems kind of in limbo at the moment. Please let me know if you need more info. Thanks.

    Hi DrClap,
    I just checked jre/lib/ext of my $JAVA_HOME and verified that there doesn't exist any library with a class named "Adapter." We don't put anything in this directory other than what came with the original installation. I've tried isolating the jars before as well, by doing something like (to no avail):
    java -cp /users/test/lib/f1j11swing.jar:/users/test/lib/Foo.jar com.test.Foo
    If I remove the f1jswing11.jar path in the above command, it will complain about other things. Also, for fun, I tried dropping f1j11swing.jar into the ext folder and removing it from the CLASSPATH and it yielded the original error. Running it directly from the shell and old version of autosys works fine.
    I hope I understood your suggestion correctly and please let me know if you have any other ideas. I'm surprised why java would act differently with a different version of an AutoSys client logging into the same machine and environment. Thanks.
    xiarce - I haven't heard anything regarding this, but I'll bring it up. Thanks.
    Edited by: user4170063 on Apr 13, 2011 2:25 PM

  • Keep getting error message when trying out a small java program in terminal

    I've been trying out running java programs in mac os x terminal. I have eclipse as well, but it's too much for me right now. I copied some programs out of the dummies book I have, just to get a feel for things -- so, I went to the desktop where the program was, and compiled it (I saved it with a .java extension). "javac javaprogram.java" to compile, which it did fine, and then 'java javaprogram' to execute it. It's just a simple line that says 'you'll love java!'. Anyway, it wouldn't execute it.
    Here's the program (written in text edit):
    class Displayer {
         public static void main (String args []) {
              System.out.println ("You'll love Java!");
    I got these messages:
    Exception in thread "main" java.lang.NoClassDefFoundError: javaprogram
    Caused by: java.lang.ClassNotFoundException: javaprogram
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:288)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
    Now, I noticed that the first part of the error is "java.lang.NoClassDefFoundError: javaprogram". When I tried to run the program, it 'created' or put something on the desktop called Displayer.class, so I'm not sure what's going on. I've compared what I entered to what's in the book, and there are no mistakes on my part.
    Can anyone tell me what I'm doing wrong, and is there any book or site I can go to which will instruct me on running programs in terminal?

    For starters, rename javaprogram.java to Displayer.java and dojavac Displayer.java
    java Displayerand since you are new to Java, change your source code to public class Displayer.
    In Java, files containing a Java class named "ClassName" should/have to be named "ClassName.java".

  • Re:How to input database to java program

    Hi...anyone can briefly teach me how to input my Microsoft access(database) folder into my Java program?
    Or anyone have the java code to input data to the program?If i input do i need to declare a table first in it?
    Help Appreciated.Thanks...

    so far i only understand to hardcode...Can any one teach or give the source to input my text file and system output the data in a drop down list.
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class ProductTable extends JFrame {
         String[] colNames={"Product ID","Product Name","Product Information","Product Price $"};
         Object [][] friendList = {{"1","Brown Bear, Brown Bear,What Do You See","Bill Martin Jr.","7.95"},
    {"2","Moo Baa La La La","Sandra Boynton","5.99"},
    {"3","Going-To-Bed","Sandra Boynton","5.99"},
    {"4","Animal Kisses","Barney Saltzberg","7.95"},
    {"5","Polar Bear, Polar Bear, What Do You Hear?","Bill Martin Jr.","7.95"},
    {"6","Tigers At Twillight","Mary Pope Osbourne","3.99"},
    {"7","But Not The Hippopotamus","Sandra Boynton","5.99"},
    {"8","Best Word Book Ever!","Richard Scarry","11.19"},
    {"9","Big Red Barn Board Book","Margaret Wise Brown","7.99"},
    {"10","Pajama Time","Sandra Boynton","6.95"},
    {"11","Time For Bed","Jane Dyer","6.95"},
    {"12","Make Way For Ducklings","Robert McCloskey","12.59"},
    {"13","Bear Snores On!","Karma Wilson","11.19"},
    {"14","Giraffes Can't Dance","Giles Andreae","11.2"},
    {"15","From Head to Toe Board Book","Eric Carle","15.37"},
    {"16","Blue Hat, Green Hat","Sandra Boynton","3.25"},
    {"17","Tails","Matthew Van Fleet","11.17"},
    {"18","Richard Scarry's Day at the Airport","Richard Scarry","3.25"},
    {"19","Richard Scarry's Best Storybook Ever!","Richard Scarry","11.19"},
    {"20","Stellaluna","Janell Cannon","11.2"},
    {"21","Salamandastron (Redwall, Book 5)","Brian Jacques","6.99"},
    {"22","What Color Is Your Underwear?","Sam Lloyd","9.99"},
    {"23","The Grouchy Ladybug","Eric Carle","7.99"},
    {"24","Mr. Popper's Penguins","Richard And Florence Atwater","5.99"},
    {"25","So Big!","Dan Yaccarino","7.99"},
    {"26","On Noah's Ark","Jan Brett","10.95"},
    {"27","Hey! Wake Up!","Sandra Boynton","6.95"},
    {"28","Can You Cuddle Like a Koala?","John Buttler","5.99"},
    {"30","Somebunny Loves Me: A Fuzzy Board Book","Joan Holub","4.99"}};
         JTable table=new JTable(friendList,colNames);
         JScrollPane scrollPane=new JScrollPane(table);
         public ProductTable(){
              Container contentPane=getContentPane();
              contentPane.add(scrollPane);
              setSize(500,200);
              setVisible(true);
         public static void main( String args[] )
              ProductTable app = new ProductTable();
              app.addWindowListener(
         new WindowAdapter() {
         public void windowClosing( WindowEvent e )
         System.exit( 0 );

  • Need Help with a JAVA programming assignment

    How do I write a JAVA program that could be used as the start of an MS-DOS/Windows simulation of the IEEE 802.3 protocol? I am to only code the parts necessary to build the 802.3 frame. For the initial implementation, the Checksum function need not be a CRC function, and the Destination and Source addresses wil be in input, stored, and output, and in dotted-decimal format.
    I need:
    1. A record to describe the frame, with each field being a (byte-) string of the required size, except that the Data field is of variable size. Although the "Source address" and "Destination address" would be 6 bytes for a real implementation, for this first implementation you can either assume they'll be text strings in the usual "dotted decimal" form (e.g. "14.04.05.18.01.25" as a typical example--from Tanenbaum, p. 429), or 6 hex digits.
    2. Suitable constant declarations for values such as the standard "Preamble" and "Start of Frame" values.
    3. Suitable functions to Get the three variable values "Destination address", "Source address", and "Data" from the standard input device.
    4. A suitable function to display each of the fields of a given frame in a format such as:
    Preamble: ...
    StartofFrame: ...
    Destination: ...
    etc.
    5. A suitable function to generate a "Pad" field if necessary.
    6. A "dummy" Checksum-generating function which just takes the first 32 bits (4 bytes) of the Data (or Data+Pad, if necessary) rather than an actual CRC algorithm.
    I have no experience with Java. Can you help me or start me in the right direction?
    Thanks...........TK

    If you have no experience with Java, then it seems to me your first step should be to start learning the language. But it's difficult to advise how, since we don't know anything about your background. There are many good books available on Java, some are for beginners and some are for advanced programmers, so I'd suggest you go somewhere that has a large selection and start looking for something that doesn't seem completely over your head.

  • Using an SQL table in a Java program?

    Hello, I am quite new to programming and would like to know if it is possible to have an SQL database as a backend, linked to my Java program?
    If it is pobbible, could someone give me breif overview of the procedure.
    Much appriciated.
    Thankyou

    Yes, use JDBC:
    http://java.sun.com/docs/books/tutorial/jdbc/
    MOD

  • Compiling and running Java programs on my laptop

    I have just bought a new laptop but I can't run and compile Java programs using the javac filename.java command in the command prompt. I know I have to download something but I am not sure what link. I would be grateful if somebody could send me on a URL. My O/S is Windows XP. Can somebody advise please?

    If you just want to run java applications, you just need the JRE: J2SE 5.0 JRE
    If you want to compile java source code, you need the JDK: J2SE 5.0 JDK
    It includes also the JRE. Recommended is also the J2SE 5.0 Documentation that contains the javadoc API that describes all the Java classes.
    To start develeoping I recommend the Java Tutorial: http://java.sun.com/docs/books/tutorial/

  • Java Programming Problem

    Hi all,
    I was looking for this java programming problem which had to do with a large building and there was some gallons of water involved in it too somehow and we had to figure out the height of the buiding using java. This problem is also in one of the java books and I really need to find out all details about this problem and the solution. NEED HELP!!
    Thanks
    mac

    Yes, it will. The water will drain from the bottom of
    the tank until the pressure from the water inside the
    tank equals the pressure from the pipe. In other
    words, without a pump, the water will drain out until
    there is the same amount of water in the tank as in
    the pipe The water pressure depends on the depth of the water, not the volume. So once the depth of the water inside the pipe reaches the same depth as the water inside the tank it will stop flowing. This will never be above the height of the tank.
    I found this applet which demonstrates our problem. If you run it you can drag the guy up to the top, when water in his hose reaches the level of the water in the tank it will stop flowing out.

Maybe you are looking for

  • Getting general error when saving site using "create PDF from"

    I'm using Adobe Acrobat Professional 8.0.0 for Mac, trying to save websites. This started working fine, but I had to shut down in the middle of a site being saved. Now when I try to save a site  using Web Capture/create PDF from I get a "general erro

  • How to reassociate PDF files in IE from Acrobat to Reader

    Hi all, How can I change program associated to open PDF in Internet Explorer. I have installed both Adobe Reader and Adobe Acrobat and at the moment Acrobat is the one which opens PDFs in IE. I wish to change it to Reader. I have associated PDF files

  • Unable to sync - getting error message unable to read or write to disk

    Please help! I got this ipod for christmas and am unable to sync it. I have already restored factory settings, recovered it, restarted computer, went to hardware device manager and it says device is working properly - what do I do now?

  • Help with Tomcat 5 and MS Access

    Hi I have a Tomcat 5 running and I want to query to a MS Access. Must I configure the server.xml to allow the connection? I'm doing the connection in a class, not in JSP: import java.sql.*; public class BaseDatos { String url="jdbc:odbc:sms"; String

  • Windows 8 freezing when using Firefox

    When I'm using Firefox or Chrome browsers the whole entire PC is freezing. Already posted my issue on the Microsoft Community forum, where you can read the details and the troubleshooting steps I tried: http://answers.microsoft.com/en-us/windows/foru