Need help regarding Linked List

I'm a beginner who just spent ages working on the following code.. but need help on re-implementing the following using a linked list, i.e. no array is allowed for customer records but you still can use arrays for names, address, etc.. Hopefully I've inserted enough comments..
Help very much appreciated!! Thanks! =]
import java.util.Scanner;
import java.io.*;
public class Bank
/* Private variables declared so that the data is only accessible to its own
     class, but not to any other class, thus preventing other classes from
     referring to the data directly */
private static Customer[] customerList = new Customer[30];               
     //Array of 30 objects created for storing information of each customer
private static int noOfCustomers;                                                       
     //Integer used to store number of customers in customerList
     public static void main(String[] args)
          Scanner sc = new Scanner(System.in);
          menu();
     public static void menu()
          char choice;
          String filename;
          int custId,counter=0;
          double interestRate;
Scanner sc = new Scanner(System.in);
          do
          //Displaying of Program Menu for user to choose
     System.out.println("ABC Bank Customer Management System Menu");     
     System.out.println("========================================");
     System.out.println("(1) Input Data from File");
     System.out.println("(2) Display Data");
     System.out.println("(3) Output Data to File");
               System.out.println("(4) Delete Record");
               System.out.println("(5) Update Record");
     System.out.println("(Q) Quit");
               System.out.println();
               System.out.print("Enter your choice: ");
               String input = sc.next();
               System.out.println();
               choice = input.charAt(0);     
          //switch statement used to assign each 'selection' to its 'operation'               
     switch(choice)
     case '1': int noOfRecords;
                                   System.out.print("Enter file name: ");
          sc.nextLine();                                             
          filename = sc.nextLine();
                                   System.out.println();
          noOfRecords = readFile(filename);
System.out.println(+noOfRecords+" records read.");
          break;
     case '2': displayRecords();
          break;
     case '3': writeFile();
     break;
                    case '4': System.out.print("Enter account ID to be deleted: ");
                                   sc.nextLine();
                                   custId = sc.nextInt();
                                   deleteRecord(custId);
                                   break;
                    case '5': if(counter==0)
          System.out.print("Enter current interest rate for saving account: ");
                                        sc.nextLine();
                                        interestRate = sc.nextDouble();
                                        update(interestRate);
                                        counter++;
                                   else
          System.out.println("Error: Accounts have been updated for the month.");
                                        break;
               }System.out.println();
     }while(choice!='Q' && choice!='q');
/* The method readFile() loads the customer list of a Bank from a specified
     text file fileName into customerList to be stored as array of Customer
     objects in customerList in ascending alphabetical order according to the
     customer names */
public static int readFile(String fileName)
     int custId,i=0;
          String custName,custAddress,custBirthdate,custPhone,custAccType;
          double custBalance,curRate;
          boolean d;
/* Try block to enclose statements that might throw an exception, followed by
     the catch block to handle the exception */
try
               Scanner sc = new Scanner(new File(fileName));
while(sc.hasNext())          
/* sc.next() gets rid of "Account", "Id" and "=" */
sc.next();sc.next();sc.next();
custId = sc.nextInt();
                    d=checkDuplicate(custId);               
/* checkDuplicate() is a method created to locate duplicating ids in array */
if(d==true)
/* A return value of true indicates duplicating record and the sc.nextLine()
     will get rid of all the following lines to read the next customer's record */
                         sc.nextLine();sc.nextLine();sc.nextLine();
                         sc.nextLine();sc.nextLine();sc.nextLine();
                         continue;     
/* A return value of false indicates no duplicating record and the following
     lines containing the information of that customer's record is being read
     in */
                    if(d==false)
/* sc.next() gets rid of "Name" and "=" and name is changed to upper case*/
     sc.next();sc.next();
     custName = sc.nextLine().toUpperCase();
/* sc.nextLine get rids of the following lines to read the next customer's
     record if length of name is more than 20 characters*/
     if(custName.length()>21)
System.out.println("Name of custId "+custId+" is more than 20 characters");
                              System.out.println();
     sc.nextLine();sc.nextLine();sc.nextLine();sc.nextLine();
     continue;
/* sc.next() gets rid of "Address" and "=" */           
     sc.next();sc.next();
     custAddress = sc.nextLine();
/* sc.nextLine get rids of the following lines to read the next customer's
     record if length of address is more than 80 characters*/                         
                         if(custAddress.length()>81)
System.out.println("Address of custId "+custId+" is more than 80 characters");
                              System.out.println();
     sc.nextLine();sc.nextLine();sc.nextLine();sc.nextLine();
     continue;
/* sc.next() gets rid of "DOB" and "=" */                              
     sc.next();sc.next();
     custBirthdate = sc.nextLine();
/* sc.nextLine get rids of the following lines to read the next customer's
     record if length of date of birth is more than 10 characters*/                         
                         if(custBirthdate.length()>11)
System.out.println("D.O.B of custId "+custId+" is more than 10 characters");
                              System.out.println();
     sc.nextLine();sc.nextLine();sc.nextLine();sc.nextLine();
     continue;
/* sc.next() gets rid of "Phone", "Number" and "=" */                              
     sc.next();sc.next();sc.next();
     custPhone = sc.nextLine();
/* sc.nextLine get rids of the following lines to read the next customer's
     record if length of phone number is more than 8 characters*/                         
                         if(custPhone.length()>9)
System.out.println("Phone no. of custId "+custId+" is more than 8 characters");
                              System.out.println();
     sc.nextLine();sc.nextLine();sc.nextLine();sc.nextLine();
     continue;
/* sc.next() gets rid of "Account", "Balance" and "=" */                              
     sc.next();sc.next();sc.next();
     custBalance = sc.nextDouble();
/* sc.next() gets rid of "Account", "Type" and "=" */                              
                         sc.next();sc.next();sc.next();
                         custAccType = sc.next();
                         if(custAccType.equals("Saving"))
customerList[noOfCustomers] = new Account1(custId,custName,custAddress,custBirthdate,custPhone,custBalance,custAccType);
sc.nextLine();
                                             noOfCustomers++;
                                             i++;
else if(custAccType.equals("Checking"))
customerList[noOfCustomers] = new Account2(custId,custName,custAddress,custBirthdate,custPhone,custBalance,custAccType);
                                             sc.nextLine();
                                             noOfCustomers++;
                                             i++;
else if(custAccType.equals("Fixed"))
sc.next();sc.next();sc.next();sc.next();
                                             curRate = sc.nextDouble();
                                             Account3 temp = new Account3(custId,custName,custAddress,custBirthdate,custPhone,custBalance,custAccType,curRate);
                                             customerList[noOfCustomers]=temp;
                                             sc.nextLine();
                                             noOfCustomers++;
                                             i++;
                         else
                              System.out.println("Account type not defined.");
     if(noOfCustomers==30)
     System.out.println("The customer list has reached its maximum limit of 30 records!");
     System.out.println();
     return noOfCustomers;
//Exceptions to be caught
catch (FileNotFoundException e)
System.out.println("Error opening file");
System.exit(0);
catch (IOException e)
System.out.println("IO error!");
System.exit(0);
/* Bubblesort method used to sort the array in ascending alphabetical order
     according to customer's name */
bubbleSort(customerList);
          return i;
/* The method displayRecords() displays the data of the customer records on
     screen */
public static void displayRecords()
int k;
/* Displaying text using the printf() method */
     for(k=0;k<noOfCustomers;k++)
     System.out.printf("Name = %s\n", customerList[k].getName());
     System.out.printf("Account Balance = %.2f\n", customerList[k].getBalance());
     System.out.printf("Account Id = %d\n", customerList[k].getId());
System.out.printf("Address = %s\n", customerList[k].getAddress());
System.out.printf("DOB = %s\n", customerList[k].getBirthdate());
System.out.printf("Phone Number = %s\n", customerList[k].getPhone());
     String type = customerList[k].getAccType();
     System.out.println("Account Type = " +type);
if(type.equals("Fixed"))
     System.out.println("Fixed daily interest = "+((Account3)customerList[k]).getFixed());
     System.out.println();               
/* The method writeFile() saves the content from customerList into a
     specified text file. Data is printed on the screen at the same time */
public static void writeFile()
/* Try block to enclose statements that might throw an exception, followed by
the catch block to handle the exception */
try
int i;
          int n=0;
//PrintWriter class used to write contents of studentList to specified file
          FileWriter fwStream = new FileWriter("newCustomers.txt");
          BufferedWriter bwStream = new BufferedWriter(fwStream);
          PrintWriter pwStream = new PrintWriter(bwStream);     
for(i=0;i<noOfCustomers;i++)
     pwStream.println("Account Id = "+customerList.getId());
          pwStream.println("Name = "+customerList[i].getName());
pwStream.println("Address = "+customerList[i].getAddress());
pwStream.println("DOB = "+customerList[i].getBirthdate());
pwStream.println("Phone Number = "+customerList[i].getPhone());
          pwStream.printf("Account Balance = %.2f\n", customerList[i].getBalance());
          pwStream.println("Account Type = "+customerList[i].getAccType());
               if(customerList[i].getAccType().equals("Fixed"))
                    pwStream.println("Fixed Daily Interest = "+((Account3)customerList[i]).getFixed());
          pwStream.println();
          n++;
//Closure of stream
pwStream.close();
          System.out.println(+n+" records written.");
catch(IOException e)
System.out.println("IO error!");     
System.exit(0);
     //Deletes specified record from list
public static void deleteRecord(int id)
int i;
          i=locate(id);
if(i==200)
//checking if account to be deleted does not exist
System.out.println("Error: no account with the id of "+id+" found!");
          //if account exists
else
                    while(i<noOfCustomers)
                         customerList[i] = customerList[i+1];
                         i++;
                    System.out.println("Account Id: "+id+" has been deleted");
                    --noOfCustomers;
     //Updates the accounts
public static void update(double interest)
int i,j,k;
          double custBalance,addition=0;
for(i=0;i<noOfCustomers;i++)
                    if(customerList[i] instanceof Account1)
                         for(j=0;j<30;j++)
                              addition=customerList[i].getBalance()*interest;
                              custBalance=customerList[i].getBalance()+addition;
                              customerList[i].setBalance(custBalance);
                    else if(customerList[i] instanceof Account2)
                         continue;
                    else if(customerList[i] instanceof Account3)
                         for(j=0;j<30;j++)
addition=customerList[i].getBalance()*((Account3)customerList[i]).getFixed();
custBalance=customerList[i].getBalance()+addition;
customerList[i].setBalance(custBalance);
                    else
                         System.out.println("Account type not defined");
          System.out.println("The updated balances are: \n");
          for(k=0;k<noOfCustomers;k++)
System.out.printf("Name = %s\n", customerList[k].getName());
System.out.printf("Account Balance = %.2f\n", customerList[k].getBalance());
System.out.println();
/* ================== Additional methods ==================== */     
/* Bubblesort method to sort the customerList in ascending alphabetical
     order according to customer's name */
public static void bubbleSort(Customer[] x)
int pass, index;
Customer tempValue;      
for(pass=0; pass<noOfCustomers-1; pass++)          
for(index=0; index<noOfCustomers-1; index++)
if(customerList[index].getName().compareToIgnoreCase(customerList[index+1].getName()) > 0)
tempValue = x[index];
x[index] = x[index+1];
x[index+1]= tempValue;
/* Method used to check for duplicated ids in array */     
     public static boolean checkDuplicate(int id)
          int i;
          for(i=0;i<noOfCustomers;i++)
               if(id == customerList[i].getId())
System.out.println("Account Id = "+id+" already exists");
                    System.out.println();
return true;
          }return false;
/* Method to seach for account id in array */
     public static int locate(int id)
          int j;
          for(j=0;j<noOfCustomers;j++)
               if(customerList[j].getId()==id)
                    return j;
          j=200;
          return j;
import java.util.Scanner;
public class Customer
/* The following private variables are declared so that the data is only
     accessible to its own class,but not to any other class, thus preventing
     other classes from referring to the data directly */
     protected int id;               
     protected String name,address,birthdate,phone,accType;                              
     protected double balance;               
// Null constructor of Customer
     public Customer()
          id = 0;
          name = null;
          address = null;
          birthdate = null;
          phone = null;
          balance = 0;
          accType = null;
/* The following statements with the keyword this activates the Customer
     (int id, String name String address, String birthdate, String phone, double
     balance) constructor that has six parameters of account id, name, address,
     date of birth, phone number, account balance and assign the values of the
     parameters to the instance variables of the object */     
     public Customer(int id, String name, String address, String birthdate, String phone, double balance, String accType)
//this is the object reference that stores the receiver object     
          this.id = id;
          this.name = name;                         
          this.address = address;
          this.birthdate = birthdate;
          this.phone = phone;
          this.balance = balance;
          this.accType = accType;
/* The following get methods getId(), getName(), getAddress(), getBirthdate(),
     getPhone(), getBalance() return the values of the corresponding instance
     properties */     
     public int getId()
          return id;
     public String getName()
          return name;
     public String getAddress()
          return address;
     public String getBirthdate()
          return birthdate;
     public String getPhone()
          return phone;
     public double getBalance()
          return balance;
     public String getAccType()
          return accType;
/* The following set methods setId(), setName(), setAddress(), setBirthdate(),
     setPhone and setBalance() set the values of the corresponding instance
     properties */
     public void setId (int custId)
          id = custId;
     public void setName(String custName)
          name = custName;
     public void setAddress (String custAddress)
          address = custAddress;
     public void setBirthdate (String custBirthdate)
          birthdate = custBirthdate;
     public void setPhone (String custPhone)
          phone = custPhone;
     public void setBalance (double custBalance)
          balance = custBalance;
     public void setAccType (String custAccType)
          accType = custAccType;
class Account1 extends Customer
     public Account1(int id, String name, String address, String birthdate, String phone, double balance, String accType)
          super(id,name,address,birthdate,phone,balance,accType);
          this.id = id;
          this.name = name;                         
          this.address = address;
          this.birthdate = birthdate;
          this.phone = phone;
          this.balance = balance;
          this.accType = accType;
class Account2 extends Customer
     public Account2(int id, String name, String address, String birthdate, String phone, double balance, String accType)
          super(id,name,address,birthdate,phone,balance,accType);
          this.id = id;
          this.name = name;                         
          this.address = address;
          this.birthdate = birthdate;
          this.phone = phone;
          this.balance = balance;
          this.accType = accType;
class Account3 extends Customer
     protected double fixed=0;
     public Account3(int id, String name, String address, String birthdate, String phone, double balance, String accType, double fixed)
          super(id,name,address,birthdate,phone,balance,accType);
          this.id = id;
          this.name = name;                         
          this.address = address;
          this.birthdate = birthdate;
          this.phone = phone;
          this.balance = balance;
          this.accType = accType;
          this.fixed = fixed;
     public double getFixed()
          return fixed;
Example of a customers.txt
Account Id = 123
Name = Matt Damon
Address = 465 Ripley Boulevard, Oscar Mansion, Singapore 7666322
DOB = 10-10-1970
Phone Number = 790-3233
Account Balance = 405600.00
Account Type = Fixed
Fixed Daily Interest = 0.05
Account Id = 126
Name = Ben Affleck
Address = 200 Hunting Street, Singapore 784563
DOB = 25-10-1968
Phone Number = 432-4579
Account Balance = 530045.00
Account Type = Saving
Account Id = 65
Name = Salma Hayek
Address = 45 Mexican Boulevard, Hotel California, Singapore 467822
DOB = 06-04-73
Phone Number = 790-0000
Account Balance = 2345.00
Account Type = Checking
Account Id = 78
Name = Phua Chu Kang
Address = 50 PCK Avenue, Singapore 639798
DOB = 11-08-64
Phone Number = 345-6780
Account Balance = 0.00
Account Type = Checking
Account Id = 234
Name = Zoe Tay
Address = 100 Blue Eyed St, Singapore 456872
DOB = 15-02-68
Phone Number = 456-1234
Account Balance = 600.00
Account Type = Saving

1) When you post code, please use[code] and [/code] tags as described in Formatting tips on the message entry page. It makes it much easier to read.
2) Don't just post a huge pile of code and ask, "How do I make this work?" Ask a specific question, and post just enough code to demonstrate the problem you're having.
3) Don't just write a huge pile of code and then test it. Write a tiny piece, test it. Then write the piece that will work with or use the first piece. Test that by itself--without the first piece. Then put the two together and test that. Only move on to the next step after the current step produces the correct results. Continue this process until you have a complete, working program.

Similar Messages

  • Please help me :'( , I really need help in Linked List & Recursion program.

    Hi everybody..
    I hope all of you are ok..
    I'm new member in this forum and I hope anyone can help me in Linked List $ Recursion issue..
    I should write a Java program that implements a linked list of objects. This program / class will have the following methods:
    1- //print each node starting from startNode upto the end node in the list
    void writeList(Node startNode)
    2- //insert a new element to the end of the list
    void insertEnd(Object element)
    3- //Print each element statring from first element in list to the last element then start //printing each element from the last element to the first element
    void writeMirror()
    4- //delete the last node.
    void deleteEnd()
    5- //returns the number of the nodes in the list.
    int lengthList(ListNode x)
    Implement the above methods using the following restrictions:
    1- All above methods must be implemented as a recursive method.
    2- For the given linked list class, there is only a head reference
    variable, pointing the beginning of the list. Thus there is no last or
    end reference variable.
    I don't know how to write this program :'( ..
    I need your help guys and I will be so happy if anyone can do it for me ..
    The sad girl
    MaRia :(

    Any body can give me any idea any hint that may help
    me ??Hint that will help you: get a personal tutor. This is the wrong place to learn how to program. And you definitely won't learn by having your homework done for you.
    Oh, and I don't care at all that your hamster has diarrhea, your boyfriend broke up with you, both of your parents are dead and unemployed, that you have to look after your 231 siblings all by yourself and that you're forced to take this class and rather want to do something completely different.
    Heard it all before.

  • Need help with linked lists.

    I have a school assignment to make a linked list with a linked list.
    The first basic is to make a list of people, and link them together in a linked list. So far, so good.
    The problem comes when I'm going to make linked lists in each of these objects that include the relationships between the people in it.
    So If I have 10 peolpe in a list, person 1 might know person 3, 4 and 8. They will all know person 1 back of course. My problem is that it isn't just one group of friends, person 3 might not know person 4 and 8, but maybe he knows person 10. So all need "their own" list.
    Therefor I can't see how I'm supposed to use linked lists for them, as I can't just link them togeter with e.g. "Person nextFriend;" The text says specifically to use linked lists. Well, I'm stuck.
    Edited by: Skruf on Jan 27, 2009 3:22 PM

    Skruf wrote:
    I know it doesn't matter what the objects represent, I just needed a way to explain.
    But a linked list is basically just a redirect to the next in the list, right?No, a linked list is a particular implementation of a list.
    Then I can't see how it's possible to make individual friend lists.No clue what problem you're having.
    People with links
    null - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - nullThat means nothing.
    I can't see how that can be used to make independent links. Do they mean that I'm support to stort it in arrays or something then?
    The person list, is (as you can see in my "illustration") only a "next" and "previous" person, so I can't use that way to link the friends together. nextFriend and lastFriend obviously doesn't work.
    That's my problemLike I said: A Person object contains a linked list. In that linked list you put references to that Person's friends.

  • Need Help Regarding Enabling The Matrix

    Hi All,
    We have got one user form and we have got one choose from list and one matrix, on click of choose from list the value will be displayed in the text box and at the same time matrix should get enabled. But it;s not happening in our case. The value is coming in the text box through choose from list but matrix is not getting enabled. We are able to change the back ground color of the matrix, make first column invisible and all but not able to enable the matrix. We need help regarding this one.
    Regards,
    Jayanth

    Hey first bind the columns of matrix to any user datasource
    and then you can enter any thing into your matrix 
    following code may help
    suppose you have one column
    oForm = SBO_Application.Forms.Item("URFRM")
    oUserDataSource = oForm.DataSources.UserDataSources.Add("URDSName",
    SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 20)
    oMatrix=oForm.Item("URMATRX")
    oMatrix = oItem.Specific
    oColumns = oMatrix.Columns
    oColumn = oColumns.Item("URCOLName")
    oColumn.DataBind.SetBound(True, "", "URDSName")
    oMatrix.Addrow()
    hope this will help
    additionally you can look at this sample
    .....SAP\SAP Business One SDK\Samples\COM UI\VB.NET\06.MatrixAndDataSources

  • Need Help Regarding JAVA BEAN

    Is any one tell me that JAVA BEAN only used in WEB or also you in Desktop applications???? and aslo tell how i implement Java class and use JAVA BEAN. I need help regarding above matter
    thanks in advance
    Rehan MIrza

    Here is a good link that indicate that JavaBean is not only for applets
    http://java.sun.com/docs/books/tutorial/javabeans/whatis/beanDefinition.html
    quote:
    The JavaBeans API makes it possible to write component software in the Java programming language. Components are self-contained, reusable software units that can be visually composed into composite components, applets, applications, and servlets using visual application builder tools. JavaBean components are known as Beans.
    Francois

  • Need HELP regarding installinfg CR2008/Visual Advantage

    I need help regarding installing CR2008/Visual Advantage. I had the evaluation copy of cr2008. My compnay purchased the CR2008 Visual Advantage. Upon calling your customer service, I was told that I had to UN-install the CR2008 evaluation copy then install the CR2008. I did the unstall HOWEVER, when I try to install the CR2008 that we purchased, i get the following error..HR
    HR -2147024770-"c:\program files\business objects enterprise 12.0\win32_x86\REPORTCONVTOOL.DLL FAILED TO REGISTER"..
    I get more that just that one...I have received this before and based upon this formum, i have delted the regristry in the following using regedit.exe
    HKEY_LOCAL_MACHINE\SOFTWARE\BUSINESS OBJECT ;
    HKEY_CURRENT_USER\SOFTWARE\BUSINESS OBJECTS..
    Afeter i deleted the keys, I re-boot my pc and try to install the coftware again...BUT I GET THE SAME ERRORS...I have tryied this several times....what am i missing/not doing correctly

    Hi Shamish
    Actually you were on the right track, i think you just have to increase PSAPTEMP a bit and you will be fine. 358 MB seems just too small, i suggest you increase it to at least 2GB.
    1. what will be the difference in use of PSAPUNDO and PSAPTEMP while copy is running. ( i.e. what will be entered in PSAPUNDO and what will be filled in PSAPTEMP.)
    PSAPTEMP: is needed for large sort operations, as mentioned when you have a select with an ORDER BY clause, or if you do join two tables. During the client copy some sorting might be needed for special tables (cluster tables) where data is stored sorted.
    PSAPUNDO: undo space is only needed for DML (data manipulation), if data is changed undo is generated. This obviously is heavily the case during a client copy.
    2. the target client already has a copy taken 1 month before. so I think while importing it first delete existing data and then copies the new one.
    So If I first delete the target client and then take import on it; will it have advantage in regards of getiing UNDO or TEMP segments getting filled ?
    Deleting the client first might help for the undo problem, but you already solved that. I cannot imagine, it will help for the PSAPTEMP issue. As i said i would just increase PSAPTEMP and restart the copy.
    One more add: if you are doing the client copy with parallel processes, this will influence your requirements on temp and undo space, because of the concurrently running processes.
    Best regards
    Michael

  • I need help regarding setting my mail accounts on macbook pro

    I need help regarding resetting my mail accounts on macbook pro

    What kind of accounts do you need to reset? IMAP or POP accounts using one of the many web-based messaging systems? An Exchange server account? Were they working and now just not working any longer?
    You're going to have to be a little more specific in what you need...
    Clinton

  • I need help regarding installation of Netweaver 2004s

    Hi,
    I need help regarding installation of Netweaver. When ever i am running setup.exe, i am getting a page asking for local host and port number as 21212. When I enter my local host name and the port number as 21200 i am getting the error message given below and the installation stops. I am not able to proceed further. can any one help me what i need to do here. I created MS lookupadapter and entered my static ip address in 'host' file after 127.0.0.1 localhost and i disabled port number 3201 in system file. I verified system variables also. Everything is fine. I dont have firewall or antivirus installed in my system. Is there any thing else i need to do. please help me. Thanks in advance.
    " SAPinst is getting started.
    Please be patient ...
    starting gui server process:
      sapinstport: 21200
      guiport    : 21212
      guistart   : true
      command    : "C:\j2sdk1.4.2_09/bin\javaw.exe" -cp "C:/DOCUME1/ADMINI1/LOCALS1/Temp/sapinst_exe.6496.1162659801\jar\instgui.jar;C:/DOCUME1/ADMINI1/LOCALS1/Temp/sapinst_exe.6496.1162659801\jar\inqmyxml.jar" -Xmx256M -Dsun.java2d.noddraw=true SDTServer config=jar:sdtserver.xml guiport=21212 sapinsthost=localhost sapinstport=21200 guistart=true
    load resource pool G:\SAP\Softwares\IDES mySAP2005\51031898\IM_WINDOWS_I386\resourcepool.xml
    guiengine: no GUI connected; waiting for a connection on host (local hostname) , port 21200 to continue with the installation
    guiengine: login in process...............................
    guiengine: login timeout; the client was unable to establish a valid connection
    Exit status of child: 1"
    Regards,
    Farooq Shaik.

    Hi
    Run the sapinst.exe with the port 21212.This port 21212 is the default port used during the installation of netweaver.

  • Need Help regarding text Output

    Dear gurus.
    I need help regarding formatting of a text.
    I want to format a employee sub group text.
    im getting a text workers (7) from a table t503t having field ptext.
    i want to show only (7) in the output not the whole text how can i do this ?
    Please help
    regards
    Saad.Nisar

    DATA: BEGIN OF itab_odoe OCCURS 0,
      department_text LIKE t527x-orgtx,"Holds the short text for department
      department_no LIKE pernr-orgeh,
      pernr LIKE pernr-pernr,
      ename LIKE pernr-ename,
      grade like t503t-ptext,   "THIS AREA GET ME TEXT OF EMPLOYEE SUBGROUP"
    *  department_text LIKE t527x-orgtx,"Holds the short text for department
      current_year LIKE sy-datum,
      wt0001 LIKE q0008-betrg,"Basic Pay
      wt1101 LIKE q0008-betrg," COLA
      wt3002 LIKE p0015-betrg,"Overtime
      per_basic type p DECIMALS 2,"Overtime percentage on basic
      per_basic_sum type p decimals 2,"Overtime Sum Division
      overtime_sum LIKE p0015-betrg,"holds sum of overtime
      basic_sum like q0008-betrg,"holds sum of basic
    END OF itab_odoe.
    Im using the select statement to get the employee subgroup from the table
    select single ptext
        from t503t
        into itab_odoe-grade
        where persk eq pernr-persk
        AND SPRSL eq 'EN'.
    now in itab_odoe-grade the values comes is Workers (7) , Snr Mgt (M3)
    i want to show only the text in Brackets.

  • I need help regarding measurement of "time domain parameters of Heart rate variability" using labview.

    I need help regarding measurement of "time domain parameters of Heart rate variability" using labview.
    I am using Labview 8 ... I  need to develop a software to accquire the ECG data (simulated enironment ) and compute the time domain parameters of Heart rate variability like "SDNN, SDANN...etc". Can some 1 plllzzzz help me out.Plzz help me if u can.Thanx in advance.

    Hi Andy,
      Thanx for responding.  The input is from a text file. SDNN, SDANN,etc are  the timedomain parameters of heart rate variability.
     SDNN: the standard deviation of the NN or RR interval  i.e. the square root of variance.
    SDANN:the standard deviation of the averageNN interval calculated over short periods, usually 5 min,which is an estimate of the changes in heart rate due tocycles longer than 5 min
    SDNN index, the meanof the 5-min standard deviation of the NN intervalcalculated over 24 h,
     RMSSD: the square root ofthe mean squared differences of successive NN intervals
    NN50: the number of interval differences of successiveNN intervals greater than 50 ms, and
    pNN50 the proportionderived by dividing NN50 by the total numberof NN intervals.
    The problem is dat I am a fresher to the world of Labview. I have jus recently started working on it. Can u please suggest me some some idea as soon as possible.
      As i said  I have the ECG data in the form of text files..I need to create sort of GUI to calculate the time domain parmeters....I need help urgently. Plzzz help me if u can. If u have and .vi example to calculate the RR interval plzz send it to me ASAP.
    Thanku

  • Need Help Regarding  ibook

    em user of   iphone  3gs  os 6.1.6
    Yesterday  i restore ma  iphone
    after that  em  Unable  to   install    ibook in  ma iphone  its  say me that u  need  os 7 ...
    need help regarding this issue....   what i do  is there any alternative app  ...?

    Hey Seungly,
    I've realized that my computer runs fine UNLESS I turn the AirPort on to connect to the Internet. The moment I click "Turn AirPort On," the "You need to restart your computer" screen immediately pops up. Is there any connection between AirPort and my problem?
    That could very easily be the case, a bad Airport card. Look at this recent post:
    http://discussions.apple.com/thread.jspa?messageID=7960754&#7960754
    John diagnosed it from the panic log.
    Does yours say something similar?
    Richard

  • Need help regarding image scanning from scanner and resizing it...

    Hi,
    I need help regarding scanning of image directly from scanner. Here is the scenario when the person clicks scan button on the webpage should scan the image and resize it and store it in some temp location. Is there any way i can do this. Any Help regarding this would be great!!!
    Thanks,
    Avinash.
    Edited by: Kalakonda on Jul 24, 2009 8:08 AM

    Kalakonda wrote:
    I need help regarding scanning of image directly from scanner. Here is the scenario when the person clicks scan button on the webpage should scan the image and resize it and store it in some temp location. Is there any way i can do this. Any Help regarding this would be great!!!So what you are doing is you have a Scanner (hardware: like an HP flatbed scanner) attached to a server that you want to use as a scanning station? Is this the senario that you are talking about?

  • Need help regarding may ipad, i cant access my ipad, need help regarding may ipad, i cant access my ipad

    need help regarding may ipad, i cant access my ipad, need help regarding may ipad, i cant access my ipad

    Can you be little more specific?

  • Hey guys need help regarding iTunes U. My school is moving for iOS and Mac in the classroom and I have been appointed Junior Administrator for the schools technical department and integrating these devices into the classroom.

    Hey guys need help regarding iTunes U. My school is moving for iOS and Mac in the classroom and I have been appointed Junior Administrator for the schools technical department and integrating these devices into the classroom.
    I have an appointment with a director on Tuesday. I want to demo iTunes U. Problem is I have never used it before and have no idea how to set it up and even if I should sign up.
    Please help any ideas regarding iTunes U and how I should direct the meeting tomorrow.
    Please please post here.
    Thanks
    Tiaan

    Greetings fcit@!A,
    After reviewing your post, it sounds like you are not able to select none as your payment type. I would recommend that you read this article, it may be able to help the issue.
    Why can’t I select None when I edit my Apple ID payment information? - Apple Support
    Thanks for using Apple Support Communities.
    Take care,
    Mario

  • Help needed creating a linked list program

    I have been trying to create a linked list program that takes in a word and its definition and adds the word to a link list followed by the definition. i.e. java - a simple platform-independent object-oriented programming language.
    the thing is that of course words must be added and removed from the list. so i am going to use the compareTo method. Basically there a 2 problems
    1: some syntax problem which is causing my add and remove method not to be seen from the WordList class
    2: Do I HAVE to use the iterator class to go thru the list? I understand how the iterator works but i see no need for it.
    I just need to be pointed in the right direction im a little lost.................
    your help would be greatly appreciated i've been working on this over a week i dont like linked list..........
    Here are my 4 classes of code........
    * Dictionary.java
    * Created on November 4, 2007, 10:53 PM
    * A class Dictionary that implements the other classes.
    * @author Denis
    import javax.swing.JOptionPane;
    /* testWordList.java
    * Created on November 10, 2007, 11:50 AM
    * @author Denis
    public class Dictionary {
        /** Creates a new instance of testWordList */
        public Dictionary() {
            boolean done=false;
    String in="";
    while(done!=true)
    in = JOptionPane.showInputDialog("Type 1 to add to Dictionary, 2 to remove from Dictionary, 3 to Print Dictionary, and 4 to Quit");
    int num = Integer.parseInt(in);
    switch (num){
    case 1:
    String toAdd = JOptionPane.showInputDialog("Please Key in the Word a dash and the definition.");
    add(toAdd);
    break;
    case 2:
    String toDelete = JOptionPane.showInputDialog("What would you like to remove?");
    remove(toDelete);
    break;
    case 3:
    for(Word e: list)
    System.out.println(e);
    break;
    case 4:
    System.out.println("Transaction complete.");
    done = true;
    break;
    default:
    done = true;
    break;
       }//end switch
      }//end while
    }//end Dictionary
    }//end main
    import java.util.Iterator;
    /* WordList.java
    * Created on November 4, 2007, 10:40 PM
    *A class WordList that creates and maintains a linked list of words and their meanings in lexicographical order.
    * @author Denis*/
    public class WordList{
        WordNode list;
        //Iterator<WordList> i = list.iterator();
        /*public void main(String [] args)
        while(i.hasNext())
        WordNode w = i.next();
        String s = w.word.getWord();
        void WordList() {
          list = null;
        void add(Word b)
            WordNode temp = new WordNode(b);
            WordNode current,previous = null;
            boolean found = false;
            try{
            if(list == null)
                list=temp;
            else{
                current = list;
                while(current != null && !found)
                    if(temp.object.getWord().compareTo(current.object.getWord())<0)
                        found = true;
                    else{
                    previous=current;
                    current=current.next;
                temp.next=current;
                if(previous==null)
                    list=temp;
                else
                    previous.next=temp;
                }//end else
            }//end try
            catch (NullPointerException e)
                System.out.println("Catch at line 46");
        }//end add
    /*WordNode.java
    * Created on November 4, 2007, 10:40 PM
    *A class WordNode that contains a Word object of information and a link field that will contain the address of the next WordNode.
    * @author Denis
    public class WordNode {
        Word object;//Word object of information
        WordNode next;//link field that will contain the address of the next WordNode.
        WordNode object2;
        public WordNode (WordNode wrd)
             object2 = wrd;
             next = null;
        WordNode(Word x)
            object = x;
            next = null;
        WordNode list = null;
        //WordNode list = new WordNode("z");
        Word getWord()
            return object;
        WordNode getNode()
            return next;
    import javax.swing.JOptionPane;
    /* Word.java
    * Created on November 4, 2007, 10:39 PM
    * A class Word that holds the name of a word and its meaning.
    * @author Denis
    public class Word {
        private String word = " ";
        /** Creates a new instance of Word with the definition*/
        public Word(String w) {
            word = w;
        String getWord(){
            return word;
    }

    zoemayne wrote:
    java:26: cannot find symbol
    symbol  : method add(java.lang.String)
    location: class Dictionary
    add(toAdd);this is in the dictionary class
    generic messageThat's because there is no add(...) method in your Dictionary class: the add(...) method is in your WordList class.
    To answer your next question "+how do I add things to my list then?+": Well, you need to create an instance of your WordList class and call the add(...) method on that instance.
    Here's an example of instantiating an object and invoking a method on that instance:
    Integer i = new Integer(6); // create an instance of Integer
    System.out.println(i.toString()); // call it's toString() method and display it on the "stdout"

Maybe you are looking for

  • Iphone 6 proximity sensor not working any more

    Dear apple users, A few weeks ago i dropped my iphone 6 and my screen broke, so I decided to fix it. I ordered a screen online and changed it. Every thing seemed to be fine until i tried to call somebody, because my screen didn't turn off when callin

  • Premiere pro free trail won't open

    The adobe cloud premiere pro free trail is install on my computer but it won't open

  • Trapping error in webdynpro when calling a function

    Hi all, I am using Adobe interactive forms and within the onsubmitevent I have webdynpro code which calls a standard function 'FMFR_CREATE_FROM_DATA' to do commitments. See code snippet below. The problem is when there is an error from the function t

  • Browse sequence - duplicate topic

    Browse sequences have been created from TOC. I have a topic in the TOC referenced twice from two different sections. Once help is generated, on the "Contents" tab, if I drill-down on the TOC tab to the topic, select something in the topic, and then p

  • CS3: PNG File Type Problems

    I can import PNG files without a problem, but when i drag one onto the stage, it is always a very small size and not the size it should be. JPG and GIF, etc don't do this. If I drag one onto the stage from the library, they are the size they should b