AIintern's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Active Members
Active Posts:
54 (0.06 per day)
Joined:
06-June 12
Profile Views:
1,806
Last Active:
User is offline Dec 19 2013 09:10 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   AIintern has not set their status

Posts I've Made

  1. In Topic: connecting a progress bar with a video?

    Posted 18 Dec 2013

    I was wondering if you could point me in the direction of any good tutorials for that?
  2. In Topic: Shell Sort mixed with insertion sort

    Posted 2 Nov 2013

    anyone please?
  3. In Topic: Shell Sort mixed with insertion sort

    Posted 2 Nov 2013

    I forgot to mention.

    I call the method like this

     shellSort(A, A.length, 1);
    
  4. In Topic: Face list of a cube?

    Posted 3 Oct 2013

    Thank you! I understand it better now, but how do they come up with the order, and how do you know what vertices to start at, and how do you know if to go clock wise or counter clockwise?
  5. In Topic: I cannot send array to selection sort.

    Posted 3 Oct 2013

    View PostMichael26, on 03 October 2013 - 02:53 PM, said:

    Yes, you defined an readA method, but where in your code you are calling that method? I don't see it in your main method. It's suppose to populate array, right?



    Ohh sorry I miss read your question.

    Here is my full "Menu" code. I left out some parts in my post so I didn't have a long long code on here..

    
    class Runner
    {   
      public static void main(String [] args)
      {
          Scanner in = new Scanner(System.in);
          MyArray mA = new MyArray(10);
          
          String res;
          
          do
          {
              System.out.println("Select:");
              System.out.println("1. Read");
              System.out.println("2. Print");
              System.out.println("3. Sort");
              System.out.println("0. exit");
                 
              res = in.next();
              
              switch (res.charAt(0))
              {
          
                  case '1':
                      mA.readA();
                      break;
                  case '2':
                      mA.printA();
                      break;
                  case '3':
                	  String sortChoice; 
    
                		  System.out.println("1. Merge sort");
                		  System.out.println("2. Quick sort");
                		  System.out.println("3. Shell sort");
                		  System.out.println("0. Quit");
                		  
    
                		  mA.quickSort(); 
                 
                	  break;
                  case '4':
                	  String searchChoice; 
                	  do{
                      System.out.println("1. Binary search");
                      System.out.println("2. Interpolation search");
                      System.out.println("0. Quit");
                      
                      searchChoice = in.next(); 
                      
                	  } while (searchChoice.charAt(0) != '0');
                      break;
                      
                  case '0': 
                      System.out.println("Bye");
                      break;
                  default:
                      System.out.println("invalid!  Try it again.");   
              }
      
          } while (res.charAt(0) != '0');
      }   
    }
    
    
    

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

AIintern hasn't added any friends yet.

Comments

AIintern has no profile comments yet. Why not say hello?