Java Binary Search and sorting in Java

My program is suppose to search news articles and alphabetize all the words article individually of the text file. Right now the program alphabetizes all the words of the articles including the numbers. The text file will be located below the code. So basically i need to know how to alphabetize every articles words individually.
//This program reads an input line from the reader put the worda into an array with a count and increases
//the count each time a word is repeated. It then sorts the words alphabetically in the array and
//then prints out the array. There are 4 different articles like this one in the text file
<ID>58</ID>
<BODY>Assets of money market mutual funds
increased 720.4 mln dlrs in the week ended yesterday to 236.90
billion dlrs, the Investment Company Institute said.
    Assets of 91 institutional funds rose 356 mln dlrs to 66.19
billion dlrs, 198 general purpose funds rose 212.5 mln dlrs to
62.94 billion dlrs and 92 broker-dealer funds rose 151.9 mln
dlrs to 107.77 billion dlrs.
</BODY>
import java.util.StringTokenizer;
import java.io.FileReader;
import java.io.BufferedReader;
import java.io.FileWriter;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.io.IOException;
import java.io.FileNotFoundException;
public class WordsFrequency
   public static void main(String[] args)
      // Initializations
      FileReader reader = null;
      FileWriter writer = null;
      // Open input and output files
      try
          reader = new FileReader("Reuters00.txt");
          writer = new FileWriter("WordsReport.txt");
      catch(FileNotFoundException e)
         System.err.println("Cannot find input file");
         System.exit(1);
      catch(IOException e)
       System.err.println("Cannot open input/output file");
       System.exit(2);
      // Set up to read a line and write a line
      BufferedReader in = new BufferedReader(reader);
      PrintWriter out = new PrintWriter(writer);
      out.println("Copied file is: Words followed by frequency");
      int count = 0;
       wordCount[] wordsArray = new wordCount[100000];
      boolean done = false;
      while(!done)
         String inputLine;
         try
              inputLine= in.readLine();
         catch(IOException e)
            System.err.println("Problem reading input, program terminates. " );
            inputLine = null;
         if (inputLine == null)
           done = true;
     sortbyWords(wordsArray,count);
           for(int i = 0; i < count;i++)
            out.println(wordsArray.toString());
else
               StringTokenizer tokenizer = new StringTokenizer(inputLine);
          while(tokenizer.hasMoreTokens())
               String token = tokenizer.nextToken();
                    int lengthofString = token.length();
                    char ch = token.charAt(lengthofString-1);
                    if(ch == '.' || ch == ',' || ch == '!' || ch == '?' || ch == ';')
               token = token.substring(0,lengthofString-1);
wordCount wordAndCount= new wordCount(token);
                    boolean skip = false;
                    for(int i = 0; i < count; i++)
                    if(token.equalsIgnoreCase(wordsArray[i].getWord()))
                         skip = true;
                         wordsArray[i].increaseFrequency();
                    if(skip == false)
                              wordsArray[count] = wordAndCount;
                         count++;
// Close files
try
in.close();
catch(IOException e)
System.err.println("Error closing file.");
finally
out.close();
     public static void sortbyWords(wordCount [] wArray, int size)
     wordCount temp;
     for (int j = 0; j < size-1; j++)
     for (int i = 0; i < size-1; i++)
     if (wArray[i].getWord().compareToIgnoreCase(wArray[i+1].getWord()) > 0)
          temp = wArray[i];
          wArray[i] = wArray[i + 1];
          wArray[i+1] = temp;
Edited by: IronManNY on Sep 25, 2008 3:24 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

IronManNY wrote:
My program is suppose to search news articles and alphabetize all the words article individually of the text file. Right now the program alphabetizes all the words of the articles including the numbers. The text file will be located below the code. So basically i need to know how to alphabetize every articles words individually.You want to strip out the numbers?

Similar Messages

  • Java binary search and insert

    I'm currently writing a program which is an appointment book. I currently have 4 classes and at the minute it can sort the array and print it out. I'm stuck at binary search and inserting a new appointment record. I will include the classes which i have got.
    Appointment
       import java.util.*;
       import java.io.*;
       import java.util.Scanner;
        class Appointment implements Comparable
          private String description;
          private int day;
          private int month;
          private int year;
          private String startTime;
          private String endTime;
          protected static Scanner keyboard = new Scanner(System.in);     
           public Appointment()
             description = "";
             day = 0;
             month = 0;;
             year = 0;;
             startTime = "";
             endTime = "";
           public Appointment(String appDesc, int appDay, int appMonth, int appYear, String appStartTime, String appEndTime)
             description = appDesc;
             day = appDay;
             month = appMonth;
             year = appYear;
             startTime = appStartTime;
             endTime = appEndTime;
           public void display()      
             System.out.print("  Description: " + description);
             System.out.print(", Date: " + day + "/" +month+ "/" +year);
             System.out.println(", Start Time: " + startTime);
             System.out.println(", End Time: " + endTime);
           public void setDay(int day)
          { this.day = day; }
           public int getDay()     
             return day; }
           public void setMonth(int month)
          { this.month = month; }
           public int getMonth()     
             return month; }
           public void setYear(int year)
          { this.year = year; }
           public int getYear()
             return year; }
           public int compareTo(Object obj)
             if (obj instanceof Appointment)
                Appointment appt = (Appointment) obj;
                if (this.day > appt.getDay())
                   return 1;
                else if (this.day < appt.getDay());
                return -1;
             return 0;
           public String toString() {
             StringBuffer buffer = new StringBuffer();
             buffer.append("Description: " + description);
             buffer.append(", Date: " + day + "/" +month+ "/" +year);
             buffer.append(", Start Time: " + startTime);
             buffer.append(", End Time: " + endTime);
             return buffer.toString();
           public void read(){
             System.out.print("Description : ");String descIn=keyboard.next();
             System.out.print("Day : ");int dayIn=keyboard.nextInt();
             System.out.print("Month : ");int monthIn=keyboard.nextInt();
             System.out.print("Year : ");int yearIn=keyboard.nextInt();
             System.out.print("Start Time : ");String startIn=keyboard.next();
             System.out.print("End Time : ");String endIn=keyboard.next();
             boolean goodInput = false;
             do{          
                try{
                   setDay(dayIn);
                   setMonth(monthIn);
                   setYear(yearIn);
                   goodInput = true;
                    catch(IllegalArgumentException e){
                      System.out.println("INVALID ARGUMENT PASSED FOR day or month or year");
                      System.out.println(e);
                      System.out.print("RE-ENTER VALID ARGUMENT FOR DAY : ");dayIn=keyboard.nextInt();
                      System.out.print("RE-ENTER VALID ARGUMENT FOR MONTH : ");monthIn=keyboard.nextInt();
                      System.out.print("RE-ENTER VALID ARGUMENT FOR YEAR : ");yearIn=keyboard.nextInt();                                        
             }while(!goodInput);
       }

    Array
    import java.util.*;
    class Array
         private Appointment[] app;
         private int nElems;
         Appointment tempApp;
         public Array(int max)
              app = new Appointment[max];
              nElems = 0;
         public Array(String desc, int day, int month, int year, String sTime, String eTime)
              app = new Appointment[100];
              nElems = 0;
       public int size()
          { return nElems; }
         void add(){
              Appointment appointmentToAdd = new Appointment();
              // Read its details
              appointmentToAdd.read();
              // And add it to the studentList
              //app[nElems].add(appointmentToAdd);
         public void add(String desc, int day, int month, int year, String sTime, String eTime)
            app[nElems] = new Appointment(desc, day, month, year, sTime, eTime);
            nElems++;             // increment size
              Appointment appointmentToAdd = new Appointment(desc, day, month, year, sTime, eTime);
              // And add it to the studentList
              //app[nElems].add(appointmentToAdd);
          public void insert(Appointment tempApp) {
        int j;
        for (j = 0; j < nElems; j++)
          // find where it goes
          if (app[j] > tempApp) // (linear search)
            break;
        for (int k = nElems; k > j; k--)
          // move bigger ones up
          app[k] = app[k - 1];
        app[j] = tempApp; // insert it
        nElems++; // increment size
       public void display()       // displays array contents
            for(int j=0; j<nElems; j++)    // for each element,
              app[j].display();     // display it
            System.out.println("");
         public void insertionSort()
       int in, out;
       for(out=1; out<nElems; out++) // out is dividing line
         Appointment temp = app[out];    // remove marked person
         in = out;          // start shifting at out
         while(in>0 &&        // until smaller one found,
            app[in-1].getMonth().compareTo(temp.getMonth())>0)
          app[in] = app[in-1];     // shift item to the right
          --in;          // go left one position
         app[in] = temp;        // insert marked item
         } // end for
       } // end insertionSort()
    }Menu
    import java.util.*;
    class Menu{
       private static Scanner keyboard = new Scanner(System.in);
       int option;
         Menu(){
            option=0;
         void display(){
              // Clear the screen
            System.out.println("\n1 Display");
              System.out.println("\n2 Insert");          
              System.out.println("3 Quit");          
         int readOption(){
            System.out.print("Enter Option [1|2|3] : ");
              option=keyboard.nextInt();
              return option;
    }Tester
       import java.util.*;
       import java.util.Arrays;
        class ObjectSortApp
           public static void main(String[] args)
                   int maxSize = 100;
                   Array arr;
                   arr = new Array(maxSize)
                   Appointment app1 = new Appointment("College Closed", 30, 4, 2009, "09:30", "05:30");;
                   Appointment app2 = new Appointment("Assignment Due", 25, 4, 2009, "09:30", "05:30");
             Appointment app3 = new Appointment("College Closed", 17, 4, 2009, "09:30", "05:30");
             Appointment app4 = new Appointment("Easter Break", 9, 4, 2009, "01:30", "05:30");
             Appointment app5 = new Appointment("College Opens", 15, 4, 2009, "09:30", "05:30");
             Appointment app6 = new Appointment("Assignment Due", 12, 4, 2009, "09:30", "05:30");
             Appointment app7 = new Appointment("Exams Begin", 11, 4, 2009, "09:30", "05:30");
                //To sort them we create an array which is passed to the Arrays.sort()
            //method.
            Appointment[] appArray = new Appointment[] {app1, app2, app3, app4, app5, app6, app7};
             System.out.println("Before sorting:");
            //Print out the unsorted array
            for (Appointment app : appArray)
                System.out.println(app.toString()); 
                Arrays.sort(appArray);
             //arr.insertionSort();      // insertion-sort them
             System.out.println("\n\nAfter sorting:");               
            //Print out the sorted array
            for (Appointment app : appArray)
                System.out.println(app.toString());
              Menu appMenu = new Menu();
              int chosenOption;
              do{
                 appMenu.display();
                   chosenOption=appMenu.readOption();
                   for (Appointment app : appArray)
                   switch(chosenOption){
                      case 1 : app.display(); break;
                        case 2 : arr.add(); break;
                        default:;
              }while(chosenOption != 3);    
          } // end main()
       } // end class ObjectSortApp

  • Can someone pls help me with java on my macbook pro because after i download the mountain lion java has died and i need java to see streaming quotes from stock market

    can someone pls help me with java on my macbook pro because after i download the mountain lion java has died and i need java to see streaming quotes from stock market

    Java is no longer included in Mac OS X by default. If you want Java, you will have to install it.
    However, note that you should think twice before installing Java for such a trivial need as looking at stock market quotes. There are other ways to get that information that don't involve Java, and using Java in your web browser is a HUGE security risk right now. Java has been vulnerable to attack almost constantly for the last year, and has become a very popular, frequently used method for getting malware installed via "drive-by downloads." You really, truly don't want to be using it. See:
    Java is vulnerable… Again?!
    http://java-0day.com

  • Looking to Search and Sort String Twice, though am having issues

    I am inputing from an access file a test library, the files in the access file are out of alphabetical order...thus I search and sort and bring these into LV in alphabetical order.  But I am running into the issue of trying to further search and sort the second column of info via the model number:
    example:
    Model ............. Model #
    Zetor               55
    Challenger        55
    Ford                55
    Zetor               66
    Challenger        66
    Ford                 66
    Zetor               45
    Challenger        45
    Ford                45
    Zetor               96
    Challenger        96
    Ford                 96
    Need to Return the Files as per below:
    Zetor               45
    Challenger        45
    Ford                45
    Zetor               55
    Challenger        55
    Ford                55
    Zetor               66
    Challenger        66
    Ford                 66
    Zetor               96
    Challenger        96
    Ford                 96
    Attachments:
    search & sort string.JPG ‏65 KB

    actually in my original post I had a brain-lapse on what the final sort needed to be....
    I was looking for this:
    Challenger        45
    Challenger        55
    Challenger        66
    Challenger        96 Ford                 45
    Ford                 55
    Ford                 66
    Ford                 96
    Zetor                45
    Zetor                55
    Zetor                66
    Zetor                96
     thanks for the quick response.

  • Diff was java add in and stand alone java instance

    Hi Guys ,
    What is the diff between  was java add in and stand alone java instance ?
    Thanks
    Sonam

    Hai,
    SCS is nothing but the SAP Central Services, it is AS Java instance of an SAP system containing the enqueue server and the message server.
    JAVA Addin is inserted in exsisting ABAP only instance to have JAVA functionality. JAVA instance is assigned to an ABAP instance. The Internet Communication Manager (ICM) of the ABAP instance starts and stops the associated Java instance as required.
    Netweaver JAVA (Stand alone) vs JAVA Addin:
    Netweaver JAVA Addin installation is a dual installation that consists of Java and ABAP stack. Addin is required when you are implementing SAP XI (Exchange Infrastructure). Stand alone JAVA is required when you implement SAP EP (Enterprise Portal). It is generally not recommended to use dual installation for EP because this will expose the ABAP layer to the public Internet. So the ABAP stack is often used to host SAP ERP ECC (Enterprise Central Component), SAP CRM, SAP SCM, etc.,
    Since the information hosted on ABAP stack is more sensitive in nature you are recommended to install Portal on the Netweaver AS Java server (Stand alone JAVA server).
    By doing this you will be able to fully utilize the system resources for the portal and ensure good performance.
    Regards,
    Yoganand.V

  • JAVA, JAVA WEB dynpro and possibility of JAVA workflow

    Hi all
    Just a take here -- I'm just getting some feelers on the way WF SHOULD be going in future.
    Since starting to use the JAVA WD system and netweaver developer studio it seems that having to encapsulate a lot of NEW Workflows as ABAP objects is going "Backwards". (Note I said NEW not EXISTING applications)
    I understand that some compatability with existing systems needs to be maintained but if your user is doing all his applications from a Portal you really need the WF's to be triggered from the portal via say WEB SERVICES.
    I find I'm actually using the older ERP / ECC 6.0 R/3 systems these days purely as DATA repositories and from a JAVA program can often retrieve the data via standard BAPI's and RFC calls in a JAVA or Portal application.
    Isn't it about time that the workflow system as a whole was made much more JAVA and PORTAL friendly --since this is where more and more people are doing their developments from.
    Since switching more or less full time over to JAVA WEB DYNPRO developments the whole development time is completed MUCH QUICKER and with many many less mistakes.
    ABAP Web dynpro is also OK but it's still a little bit of a nightmare compared with JAVA when you need a lot of WEB SERVICES.
    Some WF's obviously will need to remain ABAP based but newer custom WF's IMO should be WEB DYNPRO and WEB SERVICE based.
    I can't think of too many large organisations who aren't making more and more use of Portals these days -- so C'mon SAP -- provide some proper Web hooks into WF's instead of us having to go through hoops and rings of writing LAST CENTURY's code to get stuff to work through a Portal.
    Cheers
    jimbo

    Hi,
    Have you checked the new BPM tool that SAP is offering? I think that it is definately a big step into to the drection that you are describing. I haven't really checked all its features and the technology that is is based on, so I am not the biggest expert of this matter.
    Check for example this article to get an overview: http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b06c49b2-ac63-2c10-3d8d-d17b817ba4ca?quicklink=nw-bpm&overridelayout=true
    Of course it will be a long road before this new tool will (if it will ever) replace the old ABAP based workflow engine.
    I wouldn't totally agree with all the points that you presented (ABAP WD being a nighmare, etc.). Actually I think that the direction (at least in some parts) is the opposite. For example SAP seem to have replaced their "old" travel management applications (Java WD) with new ABAP WD applications, so I see that they believe more in ABAP than Java (of course there might be some financial & other reasons behind this also.). In my opinion WDA has so many advantages compared to WDJ, that I would consider carefully the options when choosing the technology (the possible better(?) compatibilitly with web services might be one of the reasons).
    Regards,
    Karri

  • Difference between Binary search and Linear search

    Dear all,
    If anyone helps me to get the basic difference between binary and Linear search in SAP environment.
    Regards

    Hi,
    In case of linear search system will search from begining.
    that means Example : z table contains single field with values 
    1 2 3 4 5 6 7 8 9 
    if u r searching for a value then system will starts from
    first position. if required value is founded then execution
    will comes out from z table.
    In case of binary search system will starts from mid point.
    if value is not founded then it will search for upper half.
    in  that upper half it will check mid point.like that search
    will takes place.
    Thanks,
    Sridhar

  • My class only compiles in Java 1.6 and not in Java 1.5

    Hi, my java class wont compile in java 1.5, it only compiles in Java 1.6. How can i compile the following?
    import java.util.*;
    public class ShoppingBasket
         Vector products;
         public ShoppingBasket() { products = new Vector(); }
         public void addProduct(Product product)
         boolean flag = false;
         for(Enumeration e = getProducts(); e.hasMoreElements();)
              { Product item = (Product)e.nextElement();
                   if(item.getId().equals(product.id))
                   {flag = true; item.quantity++; break; }
              if(!flag){ products.addElement(product);}
         public void deleteProduct(String str)
              for(Enumeration e=getProducts();
              e.hasMoreElements();)
              { Product item = (Product)e.nextElement();
                   if(item.getId().equals(str))
                   {products.removeElement(item); break; }
         public void emptyBasket(){products = new Vector();}
         public int getProductNumber(){ return products.size();}
         public Enumeration getProducts() { return products.elements(); }
         public double getTotal()
         Enumeration e = getProducts();
         double total; Product item;
         for(total=0.0D;e.hasMoreElements();     total+= item.getTotal())
         {item = (Product)e.nextElement(); }
         return total;
    }It should link with a class called Product which compiles fine... the errors i get are below:
    K:\jakarta-tomcat-5.0.18\webapps\ROOT\WEB-INF\classes\ShoppingBasket\ShoppingBas
    ket.java:6: cannot find symbol
    symbol  : class Product
    location: class ShoppingBasket
            public void addProduct(Product product)
                                   ^
    K:\jakarta-tomcat-5.0.18\webapps\ROOT\WEB-INF\classes\ShoppingBasket\ShoppingBas
    ket.java:10: cannot find symbol
    symbol  : class Product
    location: class ShoppingBasket
                    { Product item = (Product)e.nextElement();
                      ^
    K:\jakarta-tomcat-5.0.18\webapps\ROOT\WEB-INF\classes\ShoppingBasket\ShoppingBas
    ket.java:10: cannot find symbol
    symbol  : class Product
    location: class ShoppingBasket
                    { Product item = (Product)e.nextElement();
                                      ^
    K:\jakarta-tomcat-5.0.18\webapps\ROOT\WEB-INF\classes\ShoppingBasket\ShoppingBas
    ket.java:20: cannot find symbol
    symbol  : class Product
    location: class ShoppingBasket
                    { Product item = (Product)e.nextElement();
                      ^
    K:\jakarta-tomcat-5.0.18\webapps\ROOT\WEB-INF\classes\ShoppingBasket\ShoppingBas
    ket.java:20: cannot find symbol
    symbol  : class Product
    location: class ShoppingBasket
                    { Product item = (Product)e.nextElement();
                                      ^
    K:\jakarta-tomcat-5.0.18\webapps\ROOT\WEB-INF\classes\ShoppingBasket\ShoppingBas
    ket.java:35: cannot find symbol
    symbol  : class Product
    location: class ShoppingBasket
            double total; Product item;
                          ^
    K:\jakarta-tomcat-5.0.18\webapps\ROOT\WEB-INF\classes\ShoppingBasket\ShoppingBas
    ket.java:36: inconvertible types
    found   : <nulltype>
    required: double
            for(total=0.0D;e.hasMoreElements();     total+= item.getTotal())
                                                                         ^
    K:\jakarta-tomcat-5.0.18\webapps\ROOT\WEB-INF\classes\ShoppingBasket\ShoppingBas
    ket.java:37: cannot find symbol
    symbol  : class Product
    location: class ShoppingBasket
            {item = (Product)e.nextElement(); }
                     ^
    8 errors

    fahafiz wrote:
    ah, so should i put the classes into the folder which the classpath is assigned to?More likely you should assign your classpath to whatever folder your classes are in.
    Put your files where they make sense, and then fill in classpath accordingly:
    javac -classpath classpath MyFile.java(I think, it's been a while since I compiled from the command-line, see http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html)

  • How can I search and sort media files to eliminate duplicates?

    I have been downloading video files off of a SanDisk media card and I haven't been deleting old files off the media disk. Each time I download the files, I have been downloading a duplicate set of old files.
    Is there a way to sort the duplicates so that I can delete them on my hard drive?

    Hi,
    It should be caused that Windows Search is not installed on the second server. See following steps to install it:
    1) Start Server Manager
    2) Click on Roles in the left navigation pane
    3) Select Add Role in the Roles Summary pane to the right
    4) Select the File Services role and click Next
    5) Select the Windows Search role service and Finish the wizard.
    Meanwhile, when you search for a file such as "data", input keyword data and click the Advanced Search at the bottom to result box. Then you can select "Data and modified" and "is after" December 1, 2010
    Shaon Shan |TechNet Subscriber Support in forum |If you have any feedback on our support, please contact [email protected]

  • Searching and sorting in Xcelsius

    Hi,
              I have a requirement for sorting and searching functionality in Xcelsius.Is that possible by using Excel formulas?For searching i have used this Excel formula =INDEX($B$2:$B$15,SMALL(IF($A$1:$A$15=$A$17,ROW($A$1:$A$15)),ROW(1:1)))  the row function is not supported by Xcelsius.Is there any other way or idea to work out those functions in Xcelsius.
    Regards
    Bala

    Hi Alan,
               Thanks for your reply,I have an excelsheet with repeated values.Here what i am doing is creating am input box and giving a value to search in the excelsheet.for example there are 10 books in a library in that 4 books are same. when i enter the book name in input box the values should be retrieved and displayed in listview.Same as searching I want to sort the values in ascending or descending order to display.for more you can see the same funcionalities in the [Interactive BI features in Xcelsius.pdf  |https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20a0dd47-7b64-2b10-8e9d-9aaebd274f0d].here they are using sql to retreive the data but my requirement is to do by using excel formulas.
    Regards
    Bala

  • TOOLBAR SEARCHING AND SORTING

    HI. DEVELOPING A WINDOWS FORMS APPLICATION, TWO BUTTONS, ONE LOADS DATA FROM A CSV FILE INTO A DATA GRID, THE OTHER BUTTON, SAVES THE FILE, NOW HAVE A TOOL BAR, AND A BUTTON, SORT ITEMS, SO DO I THEN CREATE ANOTHER FORM, CLOSE THE PARENT FORM, OPEN THE
    CHILD FORM, PUT THE COMBO BOX AND THE BUTTON, THEN USE THE ARRAY TO LOOP THROUGH ALL THE ITEMS ARRAY FOR THE COMBO BOX, CLICK ON THE BUTTON. THEN IT SHOULD CLOSE THE CHILD FORM, OPEN THE PARENT FORM, THEN LAND ON THE FIRST EDITED COLUMN ITEM, FOCUS. SO. HOW
    TO DO THIS. ANY TUTORIALS, OR EXAMPLES. THANKS.
    http://startrekcafe.stevesdomain.net http://groups.yahoo.com/groups/JawsOz

    Hi Alan,
               Thanks for your reply,I have an excelsheet with repeated values.Here what i am doing is creating am input box and giving a value to search in the excelsheet.for example there are 10 books in a library in that 4 books are same. when i enter the book name in input box the values should be retrieved and displayed in listview.Same as searching I want to sort the values in ascending or descending order to display.for more you can see the same funcionalities in the [Interactive BI features in Xcelsius.pdf  |https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20a0dd47-7b64-2b10-8e9d-9aaebd274f0d].here they are using sql to retreive the data but my requirement is to do by using excel formulas.
    Regards
    Bala

  • How to change the java control panel and the default java in windows.

    Hi,
    Please help on the above problem. I need the answer urgently.
    I have two java version 1.4 and 1.5. I first installed the java version 1.4.2_06 and then 1.5.0_19.Now the default java is 1.5.
    Now I want to chang the java settings to 1.4 by changing the envioronment variable (classpath,path,java_home)
    C:\Program Files\Java\jdk1.5.0_09;C:\j2sdk1.4.2_06
    C:\Program Files\Java\jdk1.5.0_09\lib;C:\j2sdk1.4.2_06\bin
    C:\Program Files\Java\jdk1.5.0_09\bin;C:\j2sdk1.4.2_06\bin
    But after setting these does not solve the problem. The java control panel which appears is the same what was appearing for java 1.5.
    I want to see the control panel for 1.4.2_06.
    Thanks for your help.
    Regards,
    Sarita

    sarita2320 wrote:
    ..Please help on the above problem. I need the answer urgently. ...Is it still urgent?
    When I opened your post and saw that line, I immediately moved it to the 'last in line' of a whole bunch of other stuff I did not have time to look at immediately. Now that all that other stuff that did not bore me with someone else's time constraints is out of the way/taken care of, I've returned to your post.

  • Mail search and sort info

    has anyone got any good information or links on Mail sort and search?
    i am not getting results that i would expect (results are missing for all kinds of things) and i am also not finding a way to do simple things like how to search by sender as opposed to searching by term or by title. also, i am having a hard time figuring out if i can search in a particular email address etc, etc.
    i also seem to get a decent amount of crashes in Mail now that i have moved to Lion.
    TIA for any help

    23. write a summary of your post, one that's not as long, and try to be careful with those special tokens that are used for formating.
    hint: use preview button before posting, and not just press it, but also see that your message isn't odd looking[i/] in any way, for example you may have mistyped some formating token or something.
    and in your code parts, add space before or after i in [], so it would be visible, and would not mess up your code and its formating.

  • Subtract java.lang.Number from java.lang.Nuber and assign to java.lang.Numb

    I have 2 Number attributes in my class, I have to subtract one value from the other and set to another Number Object... how shd I do this?
    C=A-B
    all A,B,C are java.lang.Number Objects
    Please let me know

    That depends on what kind of number. Of course you could do this:
    Number c = new Long(a.longValue()-b.longValue());But then you'd loose decimal digits. If on the other hand you'd use Double instead you might have higher precision as you liked ... and if any of those Numbers are BigDecimal things go totatly wonky ...
    Basically you can't do this 100% correct without knowing what kind of Number objects you have to handle.

  • Help: YouTube app Search and sort problem

    Hi,
    I have problem with the YouTube app.  I know there is a search feature, I found the magnifying glass.  However, I have 3 problems.  
    1.) Search Problem:  It won't search everything on YouTube.  I tried seaching, many results would come up from PB's web brower, but it would NOT on the app.  So, what's the point of the app?  
    2.)  After finding the video, the app does not allow me to find/list "video by the same author" or "related video", the "related videos" are not so close "related" compare the web version.
    3.)  When press on the "info" buttom on the app.  The author's describing and format are off.  or not display completely..  
    Would someone please tell me if there will be a fix?  or how to fix it?
    Thanks

    I am not having that problem. Could you post screen shots?
    Be a Shepard and not an iSheep.

Maybe you are looking for

  • Black bars on iMac? (Late 2006)

    Hi, I've been getting weird black bars on my iMac. They seem to appear when there are alot of applications loaded. Some times they're on the side of windows. Sometimes on text. Sometimes my mouse turns green. Sometimes my dock is discolored completel

  • Error while using recovery

    recently when i tried to use my recovery that installed on my hard drive i got when i press F11 .                                                                      windows boot manager windows failed to start , a recent hardware or software change

  • Bogus error message: "The field jnlp has an invalid value: https."

    We are running into a variant of an old bug. With a Windows XP client using JRE 1.5.0_05, we get: {noformat}Launch File Error: The field <jnlp> has an invalid value: https Java 1.4+ is required for HTTPS support{noformat} which of course is a strange

  • JSP - Applet problem

    Hi How do I call an Applet from JSP? I have a applet that talks with jsp which talks to a bean, the connection between jsp and the bean is okay but between jsp and the applet im not sure how to do. Any suggestions? Jonas

  • AnyConnect Client Multiple VPNs

    We consult to multiple organizations and are provided VPN access to most of them. Is there a way to configure the AnyConnect to show a list of VPNs to connect to as opposed to having to enter the address everytime we want to connect?