Help, I just can't figure out this code or what to do to make it work

ok, what i'm trying to do is the following: I created a class called Enrollement, in that class I put in an array of 30 objects to hold the places of 30 names that I used Scanner to bring in from a text file. Ok, that part of the code alone works fine. After that, I know want to write a function that will count the number of times each letter (a-z) appears in the first and last names in the class that are held in that array. I have been working on this for a while making changes doing a bunch of stuff but i keep getting errors with the second part that I honestly don't know how to fix or what i'm doing wrong. I am very new to Java. IF/when anyone responds, please dumb down your answers as much as possible so that I can understand what you are saying, I just have no idea what the errors mean or how to make this program work. my code is below:
import java.util.Scanner;
   import java.io.File;
    class Enrollment{
       public static void main(String [] args)throws Exception{
         Person [] name = new Person [30];
         Scanner sc = new Scanner(new File("names.txt"));
         while (sc.hasNext()){
            String lastName = sc.next();
            String firstName = sc.next();
            sc.nextLine();
            System.out.println("Name: " + firstName + " " + lastName.substring(0,lastName.length()-1));
       public int chararcterCount(char c){
         int count = 0;
         for(int i = 0;i<30;i++){
            Person p = Person ;
count = count + p.charCount(c);
return count;
public static void main(String [] args)throws Exception{
Enrollment e = new Enrollment();
e.print();
System.out.println("Letter a appears " + e.characterCount('a') + times);
keeps telling me that public static void main.... is already defined and i know that but once i delete that part from program i just keep getting more errors later and i just have no clue how to make this all work

the program is supposed to count the number of times
a certain letter appears in the first and last names
of the class.I was asking about the particular code snippet you posted, not about the program.
....p.charCount is supposed to count the
number of times that character appears, or at least
that's what i want it to do, Does it do that? Did you test it? You should write a main method that just constructs a Person object and then call its charcount method for vairous characters--one that appears zero times, one time, and multiple times--and see if you get the right results.
i'm not too sure of the
rules aorund here and i don't know if this is taboo,
but would it be possible tot talk to you in real time
on AOL Instant Messenger or somethingNo, most people here (myself included) will not do that. It denies others the chance to learn from your problem, and prevents others who might help you from participating in the conversation.

Similar Messages

  • HT4113 Can't figure out pass code and keeps disabling?  How do I reset this?

    Can't figure out pass code and keeps disabling?  How do I reset this?

    If you can't figure it out, you'll have to force recovery mode and restore the device.
    Follow the steps in this article:
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/HT1212

  • Bizarre Server syncing quandary that I just can't figure out! Help?

    My work computer has been a PC, and it is on its last leg (the blue screen of death). Acting proactively, I went out and bought a new computer (an iMac). All of my computers are Mac's, so I was quite happy to transition at work from PC to Mac.
    I had our IT Department set the new iMac up on their server (mail, files, etc), so that all my files remain backed up as they always were when I was using my PC. Our IT Department does not have a lot of background experience setting Mac's up on their server, but alas, they were able to do it, and all was perfect (or so I thought). My mail works fine, my MobileMe syncing works fine, etc. When reviewing my files (Office Documents), however, I found an interesting anomaly that I can't seem to understand. Btw, the software issue in question is Office for Mac 2011.
    I decided to check the effectiveness of the syncing by opening both my PC and my iMac. I modified a "Word" file on my PC (all files live on the work server), and as soon as I clicked "save", I was able to watch the file instantly update on my iMac as well (thus insuring me that the server was doing as it was supposed to and syncing my documents between the two computers). I'm still using the PC as I need to finish up a few things with it (hopefully before it crashes on me permanently).
    Here is where the oddity comes in. While this updating and synchronization appears to work perfectly for all "Word" files, the same is not so for "Excel" files. In fact, after modifying an Excel file on my PC, I again watched the iMac to see if that same file would update and sync. It did not. For some odd reason, "Word" files modified on my PC will instantly sync and modify on my iMac, however, when modifying Excel files on my PC, they will not update and sync with the iMac. Not sure why I am having this issue?
    If none of my Office files were syncing, than I'd probably question whether or not our IT Department set me up on their server correctly. However, given that all "Word" files appear to sync appropriately, I'm not sure I understand why the same is not true for "Excel" files.
    I thought I'd throw the question out here, so that perhaps I can go into work tomorrow with some answers when I re-approach our IT Department with this problem. Any help would be appreciated.
    Thanks in advance,
    Dan

    Problem resolved. I figured out the problem. Naturally it was a PC issue. Now that I no longer have a PC, all problems are resolved!

  • Help...Can't figure out which AirPort card I need...

    I need help figuring out which is the correct AirPort card for my old emac. (see specs below)
    I don't know if this model is too old. I don't know how to tell if the emac is "ATI Graphics" or "USB 2.0." These are listed separately as two different emac models in the "compatible" computers for the AirPort Express card.
    Any help/direction would be GREATLY appreciated!
    _**Hardware Overview:**_
    Machine Name: eMac
    Machine Model: PowerMac4,4
    CPU Type: PowerPC G4 (2.1)
    Number Of CPUs: 1
    CPU Speed: 700 MHz
    L2 Cache (per CPU): 256 KB
    Memory: 640 MB
    Bus Speed: 100 MHz
    Boot ROM Version: 4.4.2f1

    Hi LVT and Welcome to Apple Discussions,
    The 700 takes the original Apple Airport 802.11b Wireless Card like here:
    http://eshop.macsales.com/item/Apple/M7600LLE/
    Here's how to install it if you don't already know. It's a weird one:
    http://support.apple.com/kb/HT2596
    Richard

  • I want to replace code between 2 comments on many files Just can't figure out to do it.

    There is code between 2 comments I want to replace. For example <!-- #header --> CODE <!-- #/header -->
    The problem is that there is some discrepancy in the code in each and every file. Its a header I wanted to change on a html website I thought the best way would to to use the replace function
    But each file is a little different in the code. So Its just not working. All the code between these two comments have to be changed to the same block of code.
    I tried using regular expression I just can't understand it.
    I tried you /w /W but it just wont work.
    Why is there not simpler option. Like <!-- #header --> * <!-- #/header --> and it replaces everything in between The help file should have atleast given an example of various possibilities.

    ((\s|.)*?)
    (...) - Locigal grouping of the expression
      \s  - Matches any white-space character
      |   - Logical OR
      .   - Any character (except \n newline)
      *   - Match at least 1
      ?   - Forces minimal matching
    See this cheat sheet http://www.cheatography.com/davechild/cheat-sheets/regular-expressions/

  • Simply if-statement I just can't figure out...

    Well, It's late and I'm very tired... so I just can't get the simpliest of things working right now... so, please, if you can get my brain to understand the following:
    Why can't I compare the string object right?! I just can't get it true in some cases where I thought I could... is it because it an object?! What am I comparing really?!?!
    I've forgot how to code... to many sad news...
    Please, see below for the examples... thanks!
    String test="1";
    if((test)==(test)) { // true }
    String test="1";
    if((test+1)==(test+1)) { // NOT true here!!! WHY?}
    char test='1';
    if((test+1)==(test+1)) { // true }
    int test=1;
    if((test+1)==(test+1)) { // true }
    String test="1";
    if(((test.concat("1").toString()))==((test.concat("1").toString()))) {
         // NOT true here!!! WHY?
                        

    [soapbox]
    The == should only be used to compare primitives and actual object instances (ie. "address" of the object).
    The equals() method should be used to compare objects of any other type (if implemented).
    [soapbox]

  • Can't figure out this screen mode problem! Pic to illustrate!! THANKYOU FOR YOUR HELP

    THIS IS THE TUT IM FOLLOWING.                                                                        
    THIS IS WHAT MINE LOOKS LIKE BEFORE I APPLY THE SCREEN MODE
    THIS IS WHAT IT LOOKS LIKE AFTER I APPLY SCREEN MODE
    What is the problem????? THANKYOU SO MUCH FOR YOUR HELP.

    You need to understand the meaning of the word Screen.
    It has nothing to do with half tones or rasters.
    It refers to additive (light) colour mixing like on your computer screen. So Red + Green = Yellow and so on. Look at your own screen with a strong magnifying glass to see how it works.
    Like Monika says it works best in RGB mode. If you are working in CMYK you must use a rich black (preferably 100% of all 4 colours in this rare case).
    Incidentally, an opacity mask might be a better way to go for buttons and stuff.
    There too you should use 100% of all 4 colours in the mask when working in CMYK.

  • How do I clear apps after I've updated them. They show open, I just can't figure out how to clear them...

    Updated to ios7, but now I can't clear them out of the apps file.

    Currently, there is no way to remove them from the App Updates tab of the App Store. It seems that this is normal and expected behavior in iOS 7 now.

  • Can't figure out this NullPointerException

    Hi I posted yesterday that I was making an infix to postfix converter for school and I thought I had it finished and all good when i compiled a testapp for it and got this:
    Exception in thread "main" java.lang.NullPointerException
         at myStack.push(myStack.java:14)
         at inToPost.translate(inToPost.java:14)
         at itpTest.main(itpTest.java:5)Here is the code that is creating this error:
    Method Push in myStack:
    public void push(String str)
              Node newTop = null;
              newTop.item = str; // Line 14
              newTop.next = top;
              top = newTop;
         }method translate in inToPost
    public void translate(){
              String token;
              inFile.open("data.txt");
              while(!inFile.eof()){
                   token = inFile.readString();
                   token.trim();
                   if(token.compareTo("open") > 0){
                        theStack.push("open");  //Line 14
                   else if(token.compareTo("close") > 0){
                        gotRightPar(token);
                   else if(token.compareTo("plus") > 0 || token.compareTo("minus") > 0){
                        tokenIsOp(token, 1);
                        break;
                   else if(token.compareTo("times") > 0){
                        tokenIsOp(token, 2);
                   else if(token.compareTo("pow") > 0 || token.compareTo("goob") > 0){
                        tokenIsOp(token, 3);
                   else
                        output = output + " " + token;
              inFile.close();
         }Can someone give me some insight on maybe why this is happening.
    I read the API on this error but I don't see why I would have a problem.
    As always thanks in advance for the help!

    You're a total dumb ass:
    public void push(String str)
              Node newTop = null;  // newTop is null
              newTop.item = str; // Line 14; it's still null here.
              newTop.next = top;
              top = newTop;
         }Set newTop to point to a non-null Node.
    %

  • Just can't figure out X

    Not sure this is a question.  I've been editing for 30 years.  I've learned mulitle linear systems, media 100, Premiere, Avid, Final Cut 7, plus After effects, Photoshop etc.  I've edited 3 projects with Final cut X and still feel like I'm going crazy fighting with it.  They have created something that in their efforts to help they make it virtually impossible to make easy changes on a project that has a lot going on.  I'm leaving for a internationl shoot tomorrow and rather than getting ready, I'm fighting with making the simplist changes to a project.  Is Apple going to leave us with this product as is??????

    your in the wrong forum, the folk here, tend not to be interested in FCP X
    there are plenty resources for tutorials for FCP X on the web  > IZZIVIDEO
    go here  for specific help   > FCP X

  • Can you figure out this setup? Snow Leopard and Windows 7...

    Here's my potential rig:
    - Running a Mac Pro.
    - 2 Hard Drives:
    1) Snow Leopard on first drive
    2) Windows 7 on second drive
    - 2 24" Apple LED Cinema Displays
    So here's my question...is there a way I can have both OS's running at the same time, with Snow Leopard on the left monitor and Windows 7 on the right monitor, all running out from one computer rig (Mac Pro)?
    I've heard of ppl using Synergy to run dual monitors with dual computers and sharing one keyboard and mouse. I want to do the same EXCEPT run it all out of 1 computer.
    Any advice, suggestions, critiques?
    Thanks!

    You'll have to rely on virtualization there. Check out parallels or VMWare Fusion. I think both companies provide evalauation versions. There's also Sun's free VirtualBox that you might want to give a try. A virtual windows installation won't perform as well as a boot camp installation in all situations
    Cheers,
    Jazz

  • We want to transfer the music library on our Mac to a second ipad without transfering any other data.  we share an itunes account and I just can't figure out how to get the music onto the new pad

    Hello friends
    We are trying to move our music library stored on the Mac to a second ipad.  We have already set up the second ipad and are only interested in getting select music onto the second ipad.  When we plug the ipad into the imac and connect to iturnes it wants to set up or restore the second ipad.  We're afraid if we do this it will remove all current information on the second ipad.  Thanks

    Did you ever resolve the iCloud problem.I am in the same position and its driving me mad!!! If you have a link to an solution I would appreciate it.

  • Can't figure out this error...

    The assignment is to create a program that uses a class to store information about DVDs and then diplay the information.
    One error is "cannot find symbol, symbol: constructor Dvd(), location: class Dvd, Dvd mydvd = new Dvd();
    The other error is "cannot find symbol, symbol method calculateValue(), location class DvdTest, System.out.println("The value in inventory is $", calculateValue() );
    Here's my code:
    {code// EmployeeInfo class created by Michelle Groves
    // Last edited April12 09
    public class DvdTest
       public static void main(String args [])
    Dvd mydvd = new Dvd();
    Dvd[] prodArray = new Dvd[2]; // creat an array
    prodArray[0] = new Dvd( 231562, 7.49, 2, "Cars" );
    prodArray[1] = new Dvd( 231562, 7.49, 2, "Toy Story" );
    // Displays first element's info
    System.out.println("The stock number is " + prodArray[0].getstockedDvds());
    System.out.println("Priced at " + prodArray[0].getdvdPrice());
    System.out.println("Inventory contains " + prodArray[0].getstockedDvds());
    System.out.println("The title is " + prodArray[0].getdvdName());
    // Displays second element's info
    System.out.println("The stock number is " + prodArray[1].getstockedDvds());
    System.out.println("Priced at " + prodArray[1].getdvdPrice());
    System.out.println("Inventory contains " + prodArray[1].getstockedDvds());
    System.out.println("The title is " + prodArray[1].getdvdName());
    System.out.println("The value in inventory is $", calculateValue() );
    } //end main
    } // end class
    class Dvd
    private int dvdNumber; // DVD Product Number
    private double dvdPrice; // price of DVD
    private double stockedDvds; // number of units in stock
    private String dvdName; // name of DVD
    public Dvd( int dvdNumber, double dvdPrice, double stockedDvds,
    String dvdName ) // constructor for dvd
    dvdNumber = 0;
    dvdPrice = 0.0;
    stockedDvds = 0.0;
    dvdName = "";
    } // end constructor
    // method to set DVD number
    public void setdvdNumber( int dvdNumber )
    dvdNumber = dvdNumber; // store DVD number
    } // end method setdvdNumber
    // method to retrieve DVD number
    public double getdvdNumber()
    return dvdNumber;
    } // end method getdvdNumber
    // method to set DVD price
    public void setdvdPrice( double dvdPrice )
    dvdPrice = dvdPrice;
    } // end method setdvdPrice
    // method to retrieve DVD price
    public double getdvdPrice()
    return dvdPrice;
    } // end method getdvdPrice
    // method to set stocked number of DVDs
    public void setstockedDvds( double stockedDvds )
    stockedDvds = stockedDvds;
    } // end method setstockedDvds
    // method to retrieve stocked number of DVDs
    public double getstockedDvds()
    return stockedDvds;
    } // end method getstockedDvds
    // method to set DVD Name
    public void setdvdName( String dvdName )
    dvdName = dvdName;
    } // end method setdvdName
    // method to retrieve DVD name
    public String getdvdName()
    return dvdName;
    } // end method getstockedDvds
    // method to calculate pay for week
    public double calculateValue()
    return dvdPrice * stockedDvds;
    } // end method total
    } // end class

    Here's my code a little more readable:
    // EmployeeInfo class created by Michelle Groves
    // Last edited April12 09
    public class DvdTest
    public static void main(String args [])
    Dvd mydvd = new Dvd();
    Dvd[] prodArray = new Dvd[2]; // creat an array
    prodArray[0] = new Dvd( 231562, 7.49, 2, "Cars" );
    prodArray[1] = new Dvd( 231562, 7.49, 2, "Toy Story" );
    // Displays first element's info
    System.out.println("The stock number is " + prodArray[0].getstockedDvds());
    System.out.println("Priced at " + prodArray[0].getdvdPrice());
    System.out.println("Inventory contains " + prodArray[0].getstockedDvds());
    System.out.println("The title is " + prodArray[0].getdvdName());
    // Displays second element's info
    System.out.println("The stock number is " + prodArray[1].getstockedDvds());
    System.out.println("Priced at " + prodArray[1].getdvdPrice());
    System.out.println("Inventory contains " + prodArray[1].getstockedDvds());
    System.out.println("The title is " + prodArray[1].getdvdName());
    System.out.println("The value in inventory is $", calculateValue() );
    } //end main
    } // end class
    class Dvd
    private int dvdNumber; // DVD Product Number
    private double dvdPrice; // price of DVD
    private double stockedDvds; // number of units in stock
    private String dvdName; // name of DVD
    public Dvd( int dvdNumber, double dvdPrice, double stockedDvds,
    String dvdName ) // constructor for dvd
    dvdNumber = 0;
    dvdPrice = 0.0;
    stockedDvds = 0.0;
    dvdName = "";
    } // end constructor
    // method to set DVD number
    public void setdvdNumber( int dvdNumber )
    dvdNumber = dvdNumber; // store DVD number
    } // end method setdvdNumber
    // method to retrieve DVD number
    public double getdvdNumber()
    return dvdNumber;
    } // end method getdvdNumber
    // method to set DVD price
    public void setdvdPrice( double dvdPrice )
    dvdPrice = dvdPrice;
    } // end method setdvdPrice
    // method to retrieve DVD price
    public double getdvdPrice()
    return dvdPrice;
    } // end method getdvdPrice
    // method to set stocked number of DVDs
    public void setstockedDvds( double stockedDvds )
    stockedDvds = stockedDvds;
    } // end method setstockedDvds
    // method to retrieve stocked number of DVDs
    public double getstockedDvds()
    return stockedDvds;
    } // end method getstockedDvds
    // method to set DVD Name
    public void setdvdName( String dvdName )
    dvdName = dvdName;
    } // end method setdvdName
    // method to retrieve DVD name
    public String getdvdName()
    return dvdName;
    } // end method getstockedDvds
    // method to calculate pay for week
    public double calculateValue()
    return dvdPrice * stockedDvds;
    } // end method total
    } // end class

  • A genious needed to figure out this code!!!!!

    i have three points in the following code which i can't work it out
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.* ;
    public class Hangman extends Applet implements ActionListener, ItemListener
    /* problems
    * 1) should replace all occurences of letter not just 1
    * 2) no of guesses should not be allowed to be <0
    * 3) win/lose message should be in color
    // CONSTANTS
    private static final int EASY = 0;
    private static final int MEDIUM = 1;
    private static final int HARD = 2;
    private static final int BEGINER = 9;
    private static final int INTERMEDIATE = 8;
    private static final int ADVANCED = 7;
    private static final int ANSWER = 26;
    private static final int RESET = 27;
    private static final int STRING_NOT_FOUND = -1;
    private String[][] WorkingArray = new String[][]{
    new String[]{"CAT","WREN","MOUSE","GERBIL"},
    new String[]{"ROSE","GRASS","WILLOW","RAGWORT"},
    new String[]{"SHIRT","JACKET","SANDALS","TROUSERS"}
    private Button[] Keys = new Button[28];
    private CheckboxGroup Diff = new CheckboxGroup();
    private Checkbox[] Levels = new Checkbox[]{
    new Checkbox("Beginner",true,Diff),
    new Checkbox("Intermediate",false,Diff),
    new Checkbox("Advanced",false,Diff)
    private Panel Keypad = new Panel(new GridLayout(4,7));
    private Panel P = new Panel(new FlowLayout());
    private Label Title = new Label("Guess The Word");
    private Label Prompt= new Label ("Guesses Remaining");
    private TextField Word =new TextField(24);
    private TextField Message = new TextField(24);
    private TextField Guesses = new TextField(3);
    private String LongWord = " ";// Long Word
    private String ChaGuess = " ";// Guessed Charactor
    private String s = " " ;
    private int[] Level_Values = new int[]{9,8,7,} ;
    private int Pos = 0 ;
    private int LPos = 0 ;
    private int NoOfGuesses = 9;
    private int NoOfChars = 0 ;
    private int WordLen = 0 ; // length of current word
    private int ArrayIndex = 0;// Array, currently in use
    private int ElementIndex = 0;// element, currently in use
    public void init() { // build gui and register components for events
    this.add(Title);
    this.add(Word);
    this.add(P);
    this.add(Keypad);
    this.add(Message);
    // add radio buttons to gui and register for events
    for (int x = 0 ; x < Levels.length ; x++){
    Levels[x].addItemListener(this);
    this.add(Levels[x]);
    public void start (){
    validate();
    public void stop(){
    invalidate();
    public void destroy(){
    public void actionPerformed( ActionEvent Click){
    int LastPos = 0 ;
    try { // handle button events
    if (Click.getSource() == Keys[RESET]){
    // Hide Messages and clear TextFields
    Message.setVisible(false);
    Word.setText("");
    LongWord = " " ;
    // Enable Letters
    for (int x = 0 ; x < RESET ; x++){
    Keys[x].setEnabled(true);
    }// for
    // Get Word to Display
    ElementIndex = (int)(Math.random()*4); // random no between 0 - 3
    WordLen = WorkingArray[ArrayIndex][ElementIndex].length();
    NoOfChars = WordLen ;
    for (int x = 0 ; x < WordLen; x++){
    LongWord = LongWord +"-" ;
    } // for
    Word.setText(LongWord);
    NoOfGuesses = Level_Values[ArrayIndex] ;
    Guesses.setText(LongWord.valueOf(NoOfGuesses));
    } // if
    else if (Click.getSource() == Keys[ANSWER]){
    Word.setText(WorkingArray[ArrayIndex][ElementIndex]);
    Guesses.setText(" ");
    // Disable Letters
    for (int x = 0 ; x < RESET; x++){
    Keys[x].setEnabled(false);
    }// for
    }// else if
    else{
    //event came from a letter
    // get object from awt.event, cast to button to use label
    ChaGuess=( ((Button)Click.getSource()).getLabel() );
    LPos = WorkingArray[ArrayIndex][ElementIndex].indexOf(ChaGuess) ;
    Pos = WorkingArray[ArrayIndex][ElementIndex].lastIndexOf(ChaGuess);
    if (Pos == STRING_NOT_FOUND){
    --NoOfGuesses ;
    Guesses.setText(LongWord.valueOf(NoOfGuesses));
    if (NoOfGuesses == 0 ) {
    Message.setVisible(true);
    Message.setText("You Lose");
    } //if
    else {
    if (LPos == Pos){
    LongWord = (LongWord.substring(0,Pos )
    + ChaGuess + LongWord.substring(Pos+1,WordLen));
    --NoOfChars;
    LastPos = Pos ;
    else {
    LongWord = (LongWord.substring(0,Pos )
    + ChaGuess + LongWord.substring(Pos+1,WordLen));
    --NoOfChars;
    Pos = WorkingArray[ArrayIndex][ElementIndex].indexOf(ChaGuess,LPos+1) ;
    if ( Pos != STRING_NOT_FOUND) {
    LongWord = (LongWord.substring(0,Pos )
    + ChaGuess + LongWord.substring(Pos+1,WordLen));
    --NoOfChars;
    Word.setText(LongWord);
    if (NoOfChars == 0 ) {
    Message.setVisible(true);
    Message.setText("You Win");
    }// end of try block
    catch ( Exception E ){ // catches all exceptions
    finally {
    invalidate(); // mark window as needing to be redrawn
    validate(); // redraw window
    } // actionPerformed
    public void itemStateChanged(ItemEvent Check){
    // handle checkbox events
    if (Diff.getSelectedCheckbox() == Levels[EASY]){
    ArrayIndex = EASY ;
    else if (Diff.getSelectedCheckbox() == Levels[MEDIUM]){
    ArrayIndex = MEDIUM ;
    else if (Diff.getSelectedCheckbox() == Levels[HARD]){
    ArrayIndex = HARD ;
    Guesses.setText(s.valueOf(Level_Values[ArrayIndex]));
    invalidate();
    validate();
    public Hangman() {
    char Tit = 'A';
    String ButtonTitle = "A" ;
    // construct keyboard and register for ActionEvents
    for (int Cnt = 0;Cnt< Keys.length ; Tit++, Cnt++){
    ButtonTitle = ButtonTitle.valueOf(Tit);
    Keys[Cnt] = new Button(ButtonTitle);
    Keys[Cnt].setEnabled(false);
    Keys[Cnt].addActionListener(this);
    Keypad.add(Keys[Cnt]);
    Guesses.setText(ButtonTitle.valueOf(NoOfGuesses));
    Guesses.setEditable(false); // make TextField ReadOnly
    Word.setEditable(false); // make TextField ReadOnly
    Message.setVisible(false);
    P.add(Prompt);
    P.add(Guesses);
    Keys[ANSWER].setLabel("Answer");
    Keys[RESET].setLabel("Reset");
    Keys[RESET].setEnabled(true);
    }// Hangman1
    you help is appreciated

    You do not need a genious man! You just need somebody who is willing to do your work :)

  • Back to My Mac - can't figure out NAT stuff

    So I'm far from technical...I just can't figure out how to get Back To My Mac (BTMM) to work. I am setting this up from home now...
    I have walked through the BTMM manual:
    I start in AirPort Utility and select my Base Station.
    To be able to see the "Internet" button at the top (and AirPort, Printers, Disks and Advanced), I need to first select "Manual Setup".
    I click "Internet" as it says to do in the BTMM manual. Then there is only an "Internet Connection" tab. So to get DHCP and NAT to appear, I need to change the Connection Sharing drop-down from "Off (Bridge Mode)" to "Share a public IP address". Once I do that, the NAT tab appears.
    So I click NAT and then make sure 'Enable NAT Port Mapping Protocol' is checked (it is already).
    Then I click the Update button in the lower right.
    What I get then is a notice:
    'Correct the 4 problems below before updating this base station.
    Problem:
    DHCP Beginning Address
    DHCP Ending Address
    Allow SNMP over WAN
    Allow configuration over Ethernet WAN port'
    Then when I select any of those 4 problems, different notices appear at the bottom. Thing is, I have no idea how to fix any of them, and the BTMM manual gives no clues how to fix this.
    Does anyone have any advice?
    Thanks!

    I have the same problem. From as far as I can see, there isn't any reason to have the SNMP over WAN option checked. The DHCP beginning and ending addresses have something to do with how the airport assigns IP addresses to the computers on the network. I have a theory, but I need some backup. I think if I disable the DHCP on my modem and use the Airport as my DHCP server and enable NAT, it should work. Can anyone help out with this?!

Maybe you are looking for

  • Install/upgrade issue - xfree86

    Hi, I noticed something when installing/upgrading the xfree86 package... pacman appears to only download a portion (<20%) of the package, then it installs it.  This isn't really a critical issue, since everything seems to work just fine, regardless. 

  • Change of time format for conctenation

    i have time from sy-uzeit. i want to split it into hhmmss. how to split it. kindly expain. what are to be the lengths of variable.

  • Page parameters and custom search

    Hi, Is it possible to pass page parameters to a custom search portlet? Thanks Joel.

  • FM for recalculating pricing on document

    Hi Does anybody knows function module that will recalculate prices on document? I look for FM CRM_PRIDOC*, but I can not find any appropriate. Regards

  • Please help with "while" "charAt" and "length"

    i'm trying to write a program that counts the number of each vowel in an inputed string of characters. i'm using a "while" statement, not a "for" statement, and i'm using a switch statement inside the "while" i'm having trouble getting the while stat