Help with String Question

while(more){
               System.out.print("Code:");
          ProductCode = in.readLine();
          if (!(ProductCode.equals("A01")) || !(ProductCode.equals("A28")) || ! (ProductCode.equals("B52")) || !(ProductCode.equals("B12")) || (!ProductCode.equals("C43"))
                    || !(ProductCode.equals("C63")) || !(ProductCode.equals("D24")) || !(ProductCode.equals("D90"))){
               System.out.println("Check the product code again");
          }

//*Read in the Product Code and the quantity the buyer wants
          while(more) {
               System.out.print("Code:");
               ProductCode = in.readLine();
               if (ProductCode.equals("XX")) {
                    more = false;
               else if (!(ProductCode.equals("A01") || ProductCode.equals("A28") || ProductCode.equals("B52") ||ProductCode.equals("B12") || ProductCode.equals("C43")
                    || ProductCode.equals("C63") || ProductCode.equals("D24") || ProductCode.equals("D90"))){
                    System.out.println("Check the product code again");
               else {     
                    int j = 0;
                    ProdTemp[j] = ProductCode;
                    System.out.print("Quantity:");
                    ProductNum = in.readLine();
                    ProductQuantity = Integer.parseInt(ProductNum);
                    Quantity[j]=ProductQuantity;          
                    j++;
                    NoOfItems++;
                    TotalQuantity = Quantity[j] + TotalQuantity;
//*Display the list of items the user is buying
                for(int i=0;i<NoOfItems;i++)
               if (ProdTemp.equals("A01")){
                    Cost = Quantity[i]*15.99;
                    System.out.println("Vitamin F, 260 tablets, 50mg\t"+Quantity[i]+"@ $15.99\t\t"+NumberFormat.getCurrencyInstance().format(Cost));     
etc........
i always get a java.lang.NULLPointerException when i purposely type in the wrong product code..but when all the product code are right..there is no error..can anyone help me debug?

Similar Messages

  • Help With String parsing

    Hey guys,
    I need some help with String Parsing. i hope experts here will help me.
    i'm reading a text file and getting data as String in this format
    *ABR, PAT MSSA        2009       7001    B   ABC       Y
    *VBR, SAT ZSSA        2008       5001    A   CED       N
    *ABC, AAT CSSA        5008       001     A   AZX       N
    *CBC, CAT FSSA        308        5001    A   XCV       N
    Now from following lines i have to extract Number data i.e. 2009 and 7001 from 1st line. 2008 and 5001 from 2nd line and so on.
    Can anyone pls suggest me any way to get the data that i want from these Strings
    Thanks for your time to read this.
    Regards,
    sam

    Thanks for the reply
    Data length can vary. ABR, PAT is the last name, First Name of the Users.
    it can be following or any other combination. i just need 2 set of numbers from the complete line rest i can ignore. Any other way to get that
    *ABRaaassd, PATfffff MSSA 2009 7001 B ABC Y
    *VBRaa, SATaa ZSSA 2008 5001 A CED N
    *ABC, AAT CSSA 5008 001 A AZX N
    *CBC, CAT FSSA 308 5001 A XCV N                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • HT5699 Help with car questions

    Wont let me buy things because security question for cars how lame is that!!!

    Help with security question about cars

  • Help with SCJP Question

    Hi,
    I don't understand the answer to the question below. Why doesn't it print "pre " first since this is the first line of main?
    I'm not sure I understand the order of the rest either. I've read the chapter that goes with this but still can't understand it.
    Hope someone can help.
    Thanks
    Question:
    Given:
    class Bird {
    { System.out.print("b1 "); }
    public Bird() { System.out.print("b2 "); }
    class Raptor extends Bird {
    static { System.out.print("r1 "); }
    public Raptor() { System.out.print("r2 "); }
    { System.out.print("r3 "); }
    static { System.out.print("r4 "); }
    class Hawk extends Raptor {
    public static void main(String[] args) {
    System.out.print("pre ");
    new Hawk();
    System.out.println("hawk ");
    What is the result?
    A. pre b1 b2 r3 r2 hawk
    B. pre b2 b1 r2 r3 hawk
    C. pre b2 b1 r2 r3 hawk r1 r4
    D. r1 r4 pre b1 b2 r3 r2 hawk
    E. r1 r4 pre b2 b1 r2 r3 hawk
    F. pre r1 r4 b1 b2 r3 r2 hawk
    G. pre r1 r4 b2 b1 r2 r3 hawk
    H. The order of output cannot be predicted.
    D is correct. Static init blocks are executed at class loading time, instance init blocks run
    right after the call to super() in a constructor. When multiple init blocks of a single type
    occur in a class, they run in order, from the top down.

    The static initializer blocks in the Raptor class are executed when the Raptor class is loaded. This is not the same time as an instance of a Raptor (or derived class) object is created, but at class-load time. This happens before the main method is executed, because in order to execute main, the VM first had to load the Hawk class. To load the Hawk class, it had to load the Raptor class (since Hawk extends Raptor). It also had to load the Bird class, but that class has no static initializers, so that didn't affect anything output.

  • Help with string object code

    Hello,
    First off thanks in advance to anyone who helps. I am trying to write a program that using a class string object to convert this kind of "text speech" to english. For example if the user inputs "HowAreYou?", I want the program to output "How are you?" I am having too much trouble with strings for some reason. This is what I have so far and I am not sure where to go from here. Should I use a do loop to check through the input string until it is done seperating the words? And how should I go about doing that?
    import java.util.Scanner;
    public class P8
    public static void main( String args[] )
    char choice;
    String line = null;
    String answer = null;
    Scanner scan = new Scanner(System.in);
    do
    System.out.println();
    System.out.print("ENTER TextSpeak sentence(s): ");
    line = scan.nextLine();
    System.out.print( "Converted to English: \t ");
    System.out.print( textSpeaktoEng( line ) );
    System.out.println();
    System.out.print("Want more TextSpeak?\t\t ");
    answer = scan.next();
    choice = answer.charAt(0);
    if( scan.hasNextLine() )
    answer = scan.nextLine();
    }while(choice != 'N' && choice != 'n');
    public static String textSpeakToEng(String s)
    String engStr = null;
    if( Character.isUpperCase( s.charAt(j) ) )
    engStr += ? ?;
    engStr += Character.toLowerCase( s.charAt(j) );
    scan.close();
    }

    I got my program to compile and run but I have a problem. If I input something like "ThisForumIsGreat" it will output just "t f i g" in lower case letters. Any suggestions?
    import java.util.Scanner;
    public class P8
    public static void main( String args[] )
       char     choice;                          // Repeat until n or N                                             
       String line   = null;                     // Sentences to toTextSpeak
       String answer = null;                     // Repeat program scan
       Scanner scan = new Scanner(System.in);    // Read from keyboard
       do
          System.out.println();
          System.out.print("ENTER TextSpeak sentence(s): ");
          line = scan.nextLine();                // Read input line
          System.out.print( "Converted to English: \t    ");
          System.out.print( textSpeakToEng( line ) );
          System.out.println();
          System.out.print("Want more TextSpeak?\t\t ");
          answer = scan.next();                  // Read line, assign to string
          choice = answer.charAt(0);             // Assign 1st character
          if( scan.hasNextLine() )               // <ENTER> character
            answer = scan.nextLine();            // Read line, discard
      }while(choice != 'N' && choice != 'n');    // Repeat until input start n or N
    public static String textSpeakToEng(String s)
       String engStr = null;  
       int i;  
       for ( i = 0; i < s.length(); ++i )
       if( Character.isUpperCase( s.charAt(i) ) )
         engStr += " ";                                  // Append 1 blank space
         engStr += Character.toLowerCase( s.charAt(i) ); // Append lowercase
       return( engStr );
    }

  • Help with exam question

    Please can someone help with this exam question I have. I have no idea about it I have been looking through loads of website and class documentation but I still have no answer.
    Please can someone explain this to me thanks
    Consider the following code:
    Import java.util.hashmap;
    Import java.util.map;
    Public myClass {
         Private Map <Integer, Object> myMap = New HashMap <Integer, Object> ();
         Public void addStuff(int id, Object Stuff) {
                   myMap.add(new Integer(id), stuff);
         Public Map getMyMap() {
                   Return myMap;
    Why is myMap declared as a Map and not a HashMap?

    It's called programming against the interface.
    The code using myMap doesn't need to know that it's a HashMap, but only needs to know that it's a Map (Map is an interface that HashMap implements, so every HashMap is-a Map).
    Since that knowledge is not required it's better not to give it away.
    If at some point we decide that HashMap is not the best choice here we can easily change it to any other Map implementation (such as TreeMap for example) and only need to change that one line.

  • Help with array question

    hi,
    i need some help with this piece of code. wat would it output to the screen?
    int [] theArray = { 1,2,3,4,5};
    for (int i = 1; i < 5; i++)
    System.out.print(theArray * i + "; ");
    would it output 1 * 1;
    2 * 2;...
    thanx
    devin

    Ok...
    1] Your index into the array is off by 1 - remember that array indexing starts from 0.
    2] You cannot multiply an array object. The contents? fine , go ahead but NOT the array
    so your output should be something like:
    operator * cannot be applied to int[] :d
    try
    int[] theArray = {0,1,2,3,4,5};
    for(int i = 1;i<6;i++)
         System.out.print(theArray*i+";");
    giving you an output of 1;4;9;16;n...
    if you were looking for the output stated change
    System.out.print(theArray*i+";");
    to
    System.out.print(theArray[i]+"*"+i+";");done...

  • Help with simple question.......

    This is a simple question but i can't seem to figure it out.
    For example i am using this code...
    feel free to run this code...
    When you run this you see the scrollbars with the Swing look (Bars look so nice)...
    I am using this same type of code in my other project with JBuilder 7 and I am getting the plain look of the scrollbars.
    Any suggestions will be greatly appreciated..
    =======================================================
    import javax.swing.JTable;
    import javax.swing.JScrollPane;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import java.awt.*;
    import java.awt.event.*;
    public class SimpleTableDemo extends JFrame {
    private boolean DEBUG = true;
    public SimpleTableDemo() {
    super("SimpleTableDemo");
    Object[][] data = {
    {"Mary", "Campione",
    "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath",
    "Chasing toddlers", new Integer(2), new Boolean(false)},
    {"Mark", "Andrews",
    "Speed reading", new Integer(20), new Boolean(true)},
    {"Angela", "Lih",
    "Teaching high school", new Integer(4), new Boolean(false)}
    String[] columnNames = {"First Name",
    "Last Name",
    "Sport",
    "# of Years",
    "Vegetarian"};
    final JTable table = new JTable(data, columnNames);
    table.setPreferredScrollableViewportSize(new Dimension(500, 70));
    if (DEBUG) {
    table.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    printDebugData(table);
    //Create the scroll pane and add the table to it.
    JScrollPane scrollPane = new JScrollPane(table);
    //Add the scroll pane to this window.
    getContentPane().add(scrollPane, BorderLayout.CENTER);
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    private void printDebugData(JTable table) {
    int numRows = table.getRowCount();
    int numCols = table.getColumnCount();
    javax.swing.table.TableModel model = table.getModel();
    System.out.println("Value of data: ");
    for (int i=0; i < numRows; i++) {
    System.out.print(" row " + i + ":");
    for (int j=0; j < numCols; j++) {
    System.out.print(" " + model.getValueAt(i, j));
    System.out.println();
    System.out.println("--------------------------");
    public static void main(String[] args) {
    SimpleTableDemo frame = new SimpleTableDemo();
    frame.pack();
    frame.setVisible(true);

    any help will get DUKE $$$$$$$$$$$$$$$$

  • Urgent help with string tokenizing.

    Hello Everyone,
    I'm 4 months new to Java and JSP.
    Can some one help me with a small favor please, my program below reads from a file and Tokenize the string, the top layer of the string is OK however I want to write another method to tokenize off of the top layer it must be in a separate method because I want to call the method on a JSP page. Can someone view my code and help me with the other method please.
    Thanks
    KT
    package dev;
    import java.io.*;
    import java.util.*;
    public class RoundDetail2
    public String string_gameID;
    public String string_roundID;
    public String string_bet;
    public String string_win;
    public String string_roundDetail;
    public String string_date_time;
    public String tokenizer_topLayer;
    public String readDetail_topLayer;
    public static final String SUITS[] = {" ", "Clubs", "Hearts", "Spades", "Diamonds", "Joker", "FaceDown"};
    public static final String VALUES[] = {"Joker ","Ace", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Jack", "Queen", "King"};
    public static final String SuitVALUES[] = {" ","1","2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14"};
    public RoundDetail2() throws FileNotFoundException
    DataInputStream inFile=
                 new DataInputStream(
                    new BufferedInputStream(
                   new FileInputStream("C:/apps/jakarta-tomcat-4.0.6/webapps/ROOT/WEB-INF/classes/dev/Data_452SY2.txt")));
    try { 
                 if((readDetail_topLayer = inFile.readLine()) != null)
              StringTokenizer tokenizer_topLayer = new StringTokenizer(readDetail_topLayer,"\t", true);
                   if (tokenizer_topLayer.hasMoreTokens())
                        string_gameID = tokenizer_topLayer.nextToken();
                        string_roundID = tokenizer_topLayer.nextToken();                                   
         catch(IOException e)
                    System.out.println(e.getMessage());
         

    If you are trying to read tab delimited file and tokenize the contents, the code should be as below:
    package dev;
    import java.io.*;
    import java.util.*;
    public class RoundDetail2 {
         public String string_gameID;
         public String string_roundID;
         public String string_bet;
         public String string_win;
         public String string_roundDetail;
         public String string_date_time;
         public String tokenizer_topLayer;
         public String readDetail_topLayer;
         public static final String SUITS[] = {" ", "Clubs", "Hearts", "Spades", "Diamonds", "Joker", "FaceDown"};
         public static final String VALUES[] = {"Joker ","Ace", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Jack", "Queen", "King"};
         public static final String SuitVALUES[] = {" ","1","2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14"};
         String gameInfoText = "";
         public RoundDetail2() throws FileNotFoundException
              DataInputStream inFile = new DataInputStream(new BufferedInputStream(
                                            new FileInputStream("C:/apps/jakarta-tomcat-4.0.6/webapps/ROOT/WEB-INF/classes/dev/Data_452SY2.txt")));
              try
                   while((readDetail_topLayer = inFile.readLine()) != null)
                        gameInfoText += readDetail_topLayer;
              }     catch(IOException e)
                   System.out.println(e.getMessage());
         public void getGameInfo()
              StringTokenizer tokenizer_topLayer = new StringTokenizer(gameInfoText,"\t", false);
              while (tokenizer_topLayer.hasMoreTokens())
                   string_gameID = tokenizer_topLayer.nextToken();
                   string_roundID = tokenizer_topLayer.nextToken();
                   System.out.println(string_gameID+" : "+string_roundID);
         public static void main(String[] args)
              try
                   RoundDetail2 roundDetail = new RoundDetail2();
                   roundDetail.getGameInfo();
              }catch(Exception e){}
    Test if it works for you by running at command prompt.
    Goodluck
    -Mak

  • Please help with slicing question

    I'm new to FW and to slicing. I have tried to get all of the info from tutorials and the help that I could.I'm still confused.I'm trying to produce a multi page website mockup with FW using export to CSS and Images.
    I've submitted two other posts with 0 replies. I guess my questions were too broad? I've done some trial and error and tried testing with a simplified version of the multi page website mockup I'm trying to produce. See the simplified file here:
    http://www.openrangeimaging.com/test-posts/slicetest01.png
    The top area would be the header. The lower bar will have some nav tabs. The circle is to be a logo that if clicked on will take the user to the home page.. Below the nav bar is to be two columns with content.
    I have tried different ways of slicing this but cannot get the file to export correctly as CSS and Images. I also can't seem to include the logo as a slice with a link without getting the "overlap" problem. I have been beating myself against this for some time and have not had any success. Any help or advice on where to get help or any reply at all will be most appreciated. Thanks!

    Great, my entire message was wiped out. Here it is again:
    My comments are inline.
    On 2010-10-14, at 2:16 AM, markf12 wrote:
    Jim, thank you for your very helpful reply!
    Honestly I wouldn't even try to directly export this design from FW to a CSS based layout. I think I'd move a lot faster by exporting the graphics from FW and building the design in DW.<<
    This is what I needed to know. Being new to FW I was mistakenly assuming that I could use the Images and CSS to export a clicklable mockup that would also form the html/css basis of the 15 page site I'm designing. I thought that this was possible if only I could figure out how. I expected some pretty involved work in Dreamweaver would be needed. I now understand that for what I'm doing using the HTML and Images is what should be used. Then I develop the site in Dreamweaver using perhaps some images exported from the FW mockup, but not any html or css. Thank you for clearing that up for me! I knew i had some fundamental/core misunderstanding. The export to Images and CSS is only for very simple design.
    JB - It IS possible, but you have to design the site based on certain practices. Overlapping slices is one thing to avoid.
    . If you're new to Fireworks, you really want to keep things simple as  you learn the process. Regardless, a solid knowledge of HTML and CSS is  very important.<<
    Yes I'd like to keep it simple but this is a bit of trial by fire (pun intended) on a project. I have gotten books and other tutorial type stuff on html and css. I would not call my knowledge of it solid as I am new to it. i think I get the gist of it and am determined to become proficient. The only real way to do that is to actually create something/gotta start somewhere so.......
    JB - getting the "gist" isn't enough. If you do not have a solid grounding in HTML and CSS, you will likely run into trouble even IF you successfully export the design, because you will need to to edit and tweak the code once you're in DW. I'd recommend building your first sites "the old fashioned way" first, before trying to automate the process.
    David Hogue has created a great series of CSS export videos on the Fireworks Dev Center. I strongly recommend watching them. Likewise Michel Bozgounov has written an excellent article on setting up a Fireworks document for CSS export:<<
    I had viewed a number of  Dave H's tutorials. I somehow overlooked the ones that you provided a link to. I'm going to watch them straight away. I had read the Article by Michel B. also excellent. I have also read your excellent tutorials and watched your lynda.com video training. I've gained allot from all of this.
    Thanks again for your help!
    JB - You're very welcome. Good luck.

  • I need help with some questions

    I seen where it said if something happens to your computer that you will loose the music you bought and downloaded . Will you also loose the information about your itunes gift card ?How do you run a diagnostic before you buy ? Is there a phone number to contat someone in this case , or could it be sent to my E-Mail address ? Also I would like to thank the people that helped me with my first question .

    It has always been very basic to always maintain a backup copy of your computer, so if somethign happens to your computer, you lose nothing, as you have a backup copy.
    "Will you also loose the information about your itunes gift card ?"
    When you redeem a gift card the balance is on your account.  It is accessible from anycomputer with itune, when you sign into your account.  This would not be affected by lodd of your computer.  Again, you should ALWAYS have a backup copy of your computer.
    "How do you run a diagnostic before you buy ? "
    Runa diagnostic of what before you buy what?
    "Is there a phone number to contat someone in this case , or could it be sent to my E-Mail address ?"
    Again,  in what case?  Could what be sent to your e-mail?

  • Can anyone help with string manipulation please?

    I am trying to change this string 43180-1-0001-37 into the following expression 43181-0001-37
    It is a string for Project No + Job Phase + Drawing No + Item No.
    The reduction of '43180' to '4318' is causing me the problem, I have the concatenation.
    Current report code is
    SELECT Os.[Orderno-o] As 'Order Number'
    ,Ph.PH_PHASE_NO + '.' + Re.REQUISITION_NUMBER As 'Req. Number'
    ,Pl.ID As 'Item ID'
    ,@CurrentProjectNumber + '-' + Ph.PH_PHASE_NO + '-' + Dr.DRAWING_NO + '-' + Cast(Pl.ITEM_NO As varchar(max)) As 'Drg & Item No.'
    It is this line giving me the problem?
    ,@CurrentProjectNumber + '-' + Ph.PH_PHASE_NO + '-' + Dr.DRAWING_NO + '-' + Cast(Pl.ITEM_NO As varchar(max)) As 'Drg & Item No.'

    Hi uh... Mr. Rubbish at SQL :)
    Unfortunately, there are many elements in your questions which aren't clear:
    1. What is the content in your columns PH_PHASE_NO, DRAWING_NO, ITEM_NO and what is their data type?
    2. What is the content of the variable @CurrentProjectNumber and what is its data type?
    3. It's unclear what is the logic behind the "reduction" of '43180' to '4318'. Do you want to remove trailing zeros? Shorten the value by one character? Because from what I see in your first sentence, it seems like you simply want to add 1 to '43180'
    and turn it into '43181'. That's a simple +1 operation. I also notice that you want to remove the "Job Phase" part from the string (which is "1" in your case)? Or do you need to add its value to the "Project No" (43180)? It's
    all quite confusing.
    Clarification would be highly appreciated.
    I would suggest, if you can, to please explain what you need NOT by specific examples, but by explaining your requirements IN GENERAL. In other words, don't use specific values like '43180', but start with a variable like 'X', and then let us know specifically
    what operation you want to perform on it (e.g. 'add 1' / 'remove trailing zeros' / 'shorten by one character' / 'add to it the value of some column' etc.). This will make it easier to understand the algorithm needed.
    Eitan Blumin; SQL Server Consultant - Madeira Data Solutions;

  • Need help with string field formula

    Post Author: dshallah
    CA Forum: Formula
    What I am trying to accomplish:
    The report has item numbers and each item number has the
    potential to be associated with up to three u2018binsu2019. So the fields are u2018item
    numberu2019, u2018bin1, u2018bin2u2019 and u2018bin3u2019.
    I tried to write a u2018if thenu2019 statement that would only show
    records that had a value of less than 1 in each u2018binu2019 field. When I try to
    write the statement I get a message that says u2018A string is required hereu2019 and
    it highlights the number 1 in my statement. I have a feeling itu2019s because the u2018binu2019
    fields are string fields and not number fieldsu2026? So I am not sure the proper
    procedure to correct this. Thus help is needed and appreciated.
    Here is what I wrote:
    if {IC_LOC_HIST.BIN_NAME_1} < 1 then
    {IC_LOC_HIST.BIN_NAME_1}
    What is correct way to write a statement that will show me
    the zero values in each column of bin fields?
    Thanks!

    Post Author: bettername
    CA Forum: Formula
    You must have a non-numeric value in there somewhere - up in the top left of the formula editor window, it'll show you the variables you've passed to the formula, which should help track down what's going on.
    You could try and check that the value is a number first by using something like:
    if isnull({IC_LOC_HIST.BIN_NAME_1}) = false and isnumeric({IC_LOC_HIST.BIN_NAME_1}) = false and then "Error - Should be a Number!"
    else
    if isnumeric({IC_LOC_HIST.BIN_NAME_1}) = true and tonumber({IC_LOC_HIST.BIN_NAME_1})<1 then {IC_LOC_HIST.BIN_NAME_1})

  • Plz help with 2 question's!!

    I am trying to fix a nano for a friend, she said that she has updated itunes and it shows her songs and acted as if they all d/l to ipod fine but they do not show up on ipod. I hooked it up to my comp. with my updated itunes, it shows up in itunes and on my computer as a removable disc AND when I go to my comp. and explore that drive, the songs are there and work. In itunes it does show that disc space has been used on the ipod but nothing else shows up. I've tried the good ole restore that I've never gotten to work on any ipod. I tried doing the udater and after waiting 3 hrs.(gotta love dial-up)it said that there was some error and couldn't update. What next? B/U her songs and restore? The second ques. is on my own nano, I've tried to do the updater for it and itunes acts like it is d/l but the progress bar never moves. What's that all about and do I really need the updater? Thanks in advance!!

    1. How are you getting the songs onto the iPod? Are you dragging them to the iPod like it is in Enable Disk Mode (dragging songs to it like a HDD), or are you putting them on through iTunes? Is Enable Disk Mode turned on?
    Check this out:
    My Computer Recognizes iPod as a Different Drive
    As for your second question, well, can't answer that one. Sorry!
    I hope this helps!

  • Help with wireless question

    ok, so ive just gotten back from university, and im looking into buyin a wireless router so that i can connect to the internet with my macbook. i was wondering what the best router would be considering i have a home PC that is connected to the internet with a broadband modem. im not looking for anything fancy, just something that will connect me to the internet (with a decent connection speed, and wont lose connection if i move around my house). because i am a university student, im lookin for somethin that isnt too expensive (but i will dish out the money if i have to). thanks in advance!!
    MacBook   Mac OS X (10.4.9)  

    Personally I would purchase (and have) the Airport Extreme Base Station (the new one.) But if that's too expensive you might look for someone on eBay selling a used older version AEBS. As for new I have had good luck with the D-Link DI-524 four port wireless router. Seems to work well with the Mac. However, don't expect any support from D-Link. However, the manuals are decent and what applies to Windows is pretty much the same for OS X.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

Maybe you are looking for