Need help creating text based game in Java

Alright, I'm taking a big leap and I'm jumping a little out of league here. Anyways here are my two classes...I'm sure I've got plenty of errors :-/ One other thing. I have only programmed the battle section of the program so don't worry about the other 5 sections when fixing the code.
import cs1.Keyboard;
public class Knights
    public static void main (String[] args)
        // Object Declaration
        KnightsAccount player1 = new Account (1, 100, 200);
        // variable declarations
        boolean run = true;
        int choice;
        // Game Start
        System.out.println ("Welcome to Knights.");
        System.out.println ("--------------------------------------");
        System.out.println ("You are a level 1 character.  With 100 HP and 200 gold...good luck.");
        System.out.println ();
        while (run == true)
            System.out.println ();
            System.out.println ("Enter the number of the option you would like to do");
            System.out.println ();
            System.out.println ("1. Battle");
            System.out.println ("2. Train");
            System.out.println ("3. Work");
            System.out.println ("4. Rest");
            System.out.println ("5. Stats");
            System.out.println ("6. Quit");
            choice = Keyboard.readInt();
            if (choice == 1)
                player1.battle();
            else if (choice == 2)
                player1.train();
            else if (choice == 3)
                player1.work();
            else if (choice == 4)
                player1.rest();
            else if (choice == 5)
                player1.stats();
            else
                run = false;
}And here is the second class...
import java.util.Random;
public class KnightsAccount
    public String winner;
    public int exp = 0;
    public void Account (int level, int hitPoints, int gold) {}
    public battle ()
        Random generator = new Random();
        int pumpkinHP = 80;
        int playerAttack, pumpkinAttack;
        System.out.println ("Engaged in combat with an Evil Pumpkin!");
        while (hitPoints > 0 && pumpkinHP > 0)
            if (pumpkinHP > 0)
                playerAttack = generator.nextInt(15);
                hitPoints -= playerAttack;
                System.out.println ("Player 1 attacked Evil Pumpkin for " + playerAttack + ".");
                System.out.println ("Evil Pumpkin has " + hitPoints + " HP left.");
            if (pumpkinHP <= 0)
                pumpkinDead();
            if (hitPoints > 0 && !(pumpkinHP <= 0))
                pumpkinAttack = generator.nextInt(12);
                hitPoints -= pumpkinAttack;
                System.out.println ("Evil Pumpkin attacked Player1 for " + pumpkinAttack + ".");
                System.out.println ("Player 1 has " + pumpkinHP + " HP left.");
            if (hitPoints <= 0)
                playerDead();
        return winner;
    private pumpkinDead ()
        System.out.println ("Success!  You have defeated the Evil Pumpkin with " + hitPoints + "HP left!");
        System.out.println ("For you good deed you earned 20 exp.");
        exp += 20;
        return exp;
    private void playersDead ()
        System.out.println ("You have been defeated.  Go home before we pelt melty cheeze at you.");
}Whoever can help me I'd be grateful. I know there are probably a lot of things wrong here. Also if some of you could post your AIM or MSN so that I can get some one on one help on any of the smaller problems I run acrost that would help a lot too.
Duke dollars to whoever helps me ;)
AIM: Trebor DoD
MSN: [email protected]

You should really create a GameCharacter object that contains the
statistics for a character (player or non-player) in the game.
public class GameCharacter {
   private double attackStrength;
   private double defenseStrength;
   private String name;
   private String[] bodyParts;
   private Random = new Random();
public GameCharacter(String name, String[] bodyParts, double attackSt, double defenseSt){
   this.attackStrength = attackSt;
   this.defenseStrength = defenseSt;
   this.bodyParts = bodyParts;
   this.name = name;
// put lots of methods in here to get and set the information
public String getName(){
  return this.name;
public String getRandomBodyPart(){
   return this.bodyParts[random.nextInt(this.bodyParts.length)];
}You then create your "knight" character and your "rabid pumpkin"
character.
Your fight method then just takes two GameCharacter objects and uses
the information they contain to fight the battle.
public void fight(GameCharacter a, GameCharacter b) {
   boolean fightOver = false;
   Random rn = new Random();
   double attackValue;
   while(!fightOver) {
       attackValue = a.getAttackStrength()*rn.nextDouble();
       System.out.println(a.getName()+" attacks "+b.getName()+"'s "+b.getRandomBodyPart()+" for "+attackValue+" points");
}The above is not the fighting loop of course. I just put it in to
demostrate how the fight method can be made generic. It takes any
two characters and uses their defensive and attack information to
calculate the fight outcome. It also uses the descriptions that the characters have
to make the fight more interesting. (the getRandomBodyPart method in
particular)
matfud

Similar Messages

  • Help with text based game.

    SO I've just begun to make a text based game and i've already ran into a problem :/
    I've made a switch statement that has cases for each of the classes in the game..for example
    Output will ask what you want to be
    1. Fighter
    2. etc
    3. etc
    case 1: //Fighter
    My problem is i want to be able to display the class
    as in game class not java class
    as Fighter
    That may be a bit confusing to understand sorry if it isn't clear
    Here is my code that i'm using this may help.
    import java.util.Scanner;
    public class main {
         public static void main(String args[]) {
              Scanner input = new Scanner(System.in);
              int health = 0;
              int power = 0;
              int gold = 0;
              System.out.println("Welcome to my game!");
              System.out.println("First of what is your name?");
              String name = input.next();
              System.out.println(name + " you say? Interesting name. Well then " + name + " what is your race?");
              System.out.println();
              System.out.println("Press 1. for Human");
              System.out.println("Press 2. for Elf");
              System.out.println("Press 3. for Orc");
              int Race = input.nextInt();
              switch (Race) {
              case 1: // Human
                   String race = "Human";
                   health = 10;
                   power = 10;
                   gold = 25;
              break;
              case 2: // Elf
                   health = 9;
                   power = 13;
                   gold = 25;
              break;
              case 3: // Orc
                   health = 13;
                   power = 9;
                   gold = 30;
              break;
              default:
                   System.out.println("Invalid choice Please choose 1-3");
              break;
              System.out.println("Now what is your class?");
              System.out.println("Press 1. Fighter");
              System.out.println("Press 2. Mage");
              System.out.println("Press 3. Rogue");
              int Class = input.nextInt();
              switch (Class) {
              case 1: // Fighter
                   health = health + 1;
                   power = power + 1;
                   gold = gold + 1;
              break;
              case 2: // Mage
                   health = health + 1;
                   power = power + 1;
                   gold = gold + 1;
              break;
              case 3: // Rogue
                   health = health + 1;
                   power = power + 1;
                   gold = gold + 1;
              break;
              default:
                   System.out.println("Invalid choice Please choose 1-3");
              break;
              System.out.println("So your name is " + name );
              System.out.println("and your race is: " + race);
              System.out.println("and your class is: " + Class);
    }Thanks in advance!

    Brushfire wrote:
    So you're advising him to run his console based game on the EDT, why?Far King good question... To which I suspect the answer is "Ummm... Ooops!" ;-)
    @OP: Here's my 2c... if you don't follow then ask good questions and I'll consider giving good answers.
    package forums;
    import java.util.Scanner;
    abstract class Avatar
      public final String name;
      public int type;
      public int health;
      public int power;
      public int gold;
      protected Avatar(String name, int health, int power, int gold) {
        this.name = name;
        this.health = health;
        this.power = power;
        this.gold = gold;
      public String toString() {
        return "name="+name
             +" health="+health
             +" power="+power
             +" gold="+gold
    class Human extends Avatar
      public Human(String name) {
        super(name, 10, 11, 31);
    class Elf extends Avatar
      public Elf(String name) {
        super(name, 9, 13, 25);
    class Orc extends Avatar
      public Orc(String name) {
        super(name, 6, 17, 13);
    interface AvatarFactory
      public Avatar createAvatar();
    class PlayersAvatarFactory implements AvatarFactory
      private static final Scanner scanner = new Scanner(System.in);
      public Avatar createAvatar() {
        System.out.println();
        System.out.println("Lets create your avatar ...");
        String name = readName();
        Avatar player = null;
        switch(readRace(name)) {
          case 1: player = new Human(name); break;
          case 2: player = new Elf(name); break;
          case 3: player = new Orc(name); break;
        player.type = readType();
        return player;
      private static String readName() {
        System.out.println();
        System.out.print("First off, what is your name : ");
        String name = scanner.nextLine();
        System.out.println(name + " you say? Interesting name.");
        return name;
      private static int readRace(String name) {
        System.out.println();
        System.out.println("Well then " + name + ", what is your race?");
        System.out.println("1. for Human");
        System.out.println("2. for Elf");
        System.out.println("3. for Orc");
        while(true) {
          System.out.print("Choice : ");
          int race = scanner.nextInt();
          scanner.nextLine();
          if (race >= 1 && race <= 3) {
            return race;
          System.out.println("Bad Choice! Please try again, and DO be careful! This is important!");
      private static int readType() {
        System.out.println();
        System.out.println("Now, what type of creature are you?");
        System.out.println("1. Barbarian");
        System.out.println("2. Mage");
        System.out.println("3. Rogue");
        while(true) {
          System.out.print("Choice : ");
          int type = scanner.nextInt();
          scanner.nextLine();
          if (type >= 1 && type <= 3) {
            return type;
          System.out.println("Look, enter a number between 1 and 3 isn't exactly rocket surgery! DO atleast try to get it right!");
    public class PlayersAvatarFactoryTest {
      public static void main(String args[]) {
        try {
          PlayersAvatarFactoryTest test = new PlayersAvatarFactoryTest();
          test.run();
        } catch (Exception e) {
          e.printStackTrace();
      private void run() {
        AvatarFactory avatarFactory = new PlayersAvatarFactory();
        System.out.println();
        System.out.println("==== PlayersAvatarFactoryTest ====");
        System.out.println("Welcome to my game!");
        Avatar player1 = avatarFactory.createAvatar();
        System.out.println();
        System.out.println("Player1: "+player1);
    }It's "just a bit" more OOified than your version... and I changed random stuff, so you basically can't cheat ;-)
    And look out for JSG's totally-over-the-top triple-introspective-reflective-self-crushing-coffeebean-abstract-factory solution, with cheese ;-)
    Cheers. Keith.
    Edited by: corlettk on 25/07/2009 13:38 ~~ Typo!
    Edited by: corlettk on 25/07/2009 13:39 ~~ I still can't believe the morons at sun made moron a proscribed word.

  • How to make an a basic attack in my text based game

    hey guys! i really need some genuine help on how to create an attack for my monsters and player. the attack should be basic: if the room contains a monster, then the monster attacks when the player goes inside the room. then the player can type a command to attack the monster. the attack should just deduct the hp of the monster. so the player can keep attacking till the monster is "dead"(this is where i remove the monster).
    anyway i tried alot in creating the attack but i failed all the time, messing my code even more. please!!!!! help!!!
    my monster class:
    public class Monster
    private int hp, stage;
    private String name;
    public Monster(String name, int stage)
    this.name = name;
    this.stage = stage;
    if(stage == 1) {
    hp = 1;
    else if(stage == 2) {
    hp = 2;
    else if(stage == 3) {
    hp = 2;
    else if(stage == 4) {
    hp = 3;
    else if(stage == 5) {
    hp = 4;
    else if(stage == 6) {
    hp = 6;
    public int monsterStage()
    return stage;
    public String getName()
    return name;
    this is where i created the monsters in my main game class:
    private Monster skeleton, sphinx, zombie, vampire, werewolf, undeadking;
    setting the monster to a room:
    skeleton = new Monster("skeleton1", 1);
    skeleton = new Monster("skeleton2", 1);
    sphinx = new Monster("sphinx1", 2);
    sphinx = new Monster("sphinx2", 2);
    sphinx = new Monster("sphinx3", 2);
    zombie = new Monster("zombie", 3);
    vampire = new Monster("vampire1", 4);
    vampire = new Monster("vampire2", 4);
    werewolf = new Monster("werewolf", 5);
    undeadking = new Monster("undeadking", 6);
    //setting the monster to a place
    bridge.addMonster("skeleton1", skeleton);
    castleDoor.addMonster("sphinx1", sphinx);
    castleChest.addMonster("zombie", zombie);
    dungeonDoor.addMonster("sphinx2", sphinx);
    castleStair.addMonster("werewolf", werewolf);
    dungeonBridge.addMonster("vampire2", vampire);
    dungeonBook.addMonster("sphinx3", sphinx);
    dungeonChest.addMonster("skeleton2", skeleton);
    throneCenter.addMonster("undeadking", undeadking);
    ps.: please help me! each room has one monster only and they are stored in hashmaps

    Here is a start of a basic text based game--it doesn't level or regen characters nor give healing or have new weapons...
    package ForumJunk;
    import java.util.Random;
    import java.util.Scanner;
    public class ForumJunk{
      private final int widthX;
      private final int heightY;
      private int myX;
      private int myY;
      private int myLevel;
      private int baseHP;
      private int myHP;
      private int myTreasure;
      private String[] myWeapon = {"fist", "open hand", "dagger", "short sword", "long sword", "b-sword", "2H sword"};
      private int[] myWeaponMaxDamage = {2, 3, 4, 6, 10, 12, 16};
      private int monsterFillFactor = 40;
      private int[][] monsterLevel = {{1, 1, 1}, {2, 2, 2}, {3, 3, 3}};
      private String[][] monsterName = {{"Skeleton", "Orac", "Kobald"}, {"Zombi", "Wolf", "Giant Rat"}, {"Bandit", "Mummy", "Ghost"}};
      private int[] monsterMaxDamage = {2, 4, 6};
      private myRoom[][] room;
      private Random rand;
      public ForumJunk(){
        widthX  = 100;
        heightY = 100;
        myLevel = 1;
        rand = new Random();
        baseHP   = 16;
        myHP     = baseHP;
        for(int i=0; i<myLevel; i++) myHP = myHP + rand.nextInt(4) + 4;
        room = new myRoom[widthX][heightY];
        for(int i=0; i<widthX; i++)for(int j=0; j<heightY; j++)room[i][j]=new myRoom();
        myX = rand.nextInt(widthX);
        myY = rand.nextInt(heightY);
        myTreasure = 0;
        fillMonster();
      public void doAttack(){
        if(!(room[myX][myY].monster != null)){
          System.out.println("Oh, it must have been my shadow; there's no monsters here \n");
          return; //no monster
        if(rand.nextBoolean()){
         doHumanAttack();
         if(room[myX][myY].monster.hp > 0) doMonsterAttack();
        }else{
          doMonsterAttack();
          doHumanAttack();
      public void doHumanAttack(){
        int weaponIndex = 0;
        if(myLevel<myWeaponMaxDamage.length) weaponIndex = myLevel;else weaponIndex = myWeaponMaxDamage.length-1;
        System.out.println("Attacking with " + myWeapon[weaponIndex] + " ...");
        int damage = myLevel * rand.nextInt(myWeaponMaxDamage[myLevel]);
        room[myX][myY].monster.hp -= damage;
        if(damage>0) System.out.println("Hit for " + damage + " damage\n");
        else System.out.println("I missed!\n");
        if(room[myX][myY].monster.hp <= 0) System.out.println("The " + room[myX][myY].monster.name  + " is dead.");
      public void doMonsterAttack(){
        System.out.println("The " + room[myX][myY].monster.name  + " is attacking...");
        int damage = rand.nextInt(monsterMaxDamage[room[myX][myY].monster.level-1]);
        myHP -= damage;
        if(damage>0) System.out.println("I've been hit for " + damage + " damage\n");
        else System.out.println("It missed me!\n");
        if(myHP<=0){
          System.out.println("Oh no, I'm dead!!!!!");
          System.exit(0);
      public void doStatus(){
        System.out.println();
        System.out.println("  Status:");
        System.out.println("    Room: " + myX + ":" + myY);
        System.out.println("      HP: " + myHP);
        System.out.println("Treasure: " + myTreasure + " gp");
        System.out.println("   Level: " + myLevel);
        System.out.println();
      public void doTreasure(){
        if(!(room[myX][myY].monster != null)){
          System.out.println("What--do you expect it just to be laying around in every room? \n");
          return; //no monster
        if(room[myX][myY].monster.hp>0){
          System.out.println("If there is any treasure that " + room[myX][myY].monster.name + " is guarding it.\n");
          return; //no monster
        myTreasure += room[myX][myY].monster.treasure;
        System.out.println("I found " + room[myX][myY].monster.treasure + " gp\n");
        room[myX][myY].monster = null;
      public void fillMonster(){
        int fill = (widthX * heightY * monsterFillFactor) / 100;
        int x = 0;
        int y = 0;
        boolean gen = false;
        for(int i=0; i<fill; i++){
          gen = true;
          while(gen){
            x = rand.nextInt(widthX);
            y = rand.nextInt(heightY);
            if(!(room[x][y].monster != null)){
              room[x][y].monster = new Monster(rand.nextInt(3)+1);
              gen = false;
      class Monster{
        int level = 0;
        int hp   = 0;
        int treasure = 0;
        String name = "";
        Monster(int level){
          this.level = level;
          hp = 1;
          for(int i = 0; i<level; i++) {
            hp += rand.nextInt(6);
            treasure += rand.nextInt(100);
          name = monsterName[level-1][rand.nextInt(3)];
      class myRoom{
        Monster monster = null;
        //what ever else you want to put in here
      public static void main(String[] args){
        String myIN = "";
        Scanner scan = new Scanner(System.in);
        ForumJunk fj = new ForumJunk();
        System.out.print("I am in room: " + fj.myX + ", " + fj.myY + " I have " + fj.myHP + " hit points and " + fj.myTreasure + " treasure ");
        if(fj.room[fj.myX][fj.myY].monster!=null){
          System.out.println("There is a  " + fj.room[fj.myX][fj.myY].monster.name + " here!");
        System.out.println("\n");
        while(!(myIN=scan.next()).equals("exit")){
          if(myIN.equals("north")){
            fj.myY -=1;
            if(fj.myY<0) fj.myY=fj.heightY-1;
          }else if(myIN.equals("south")){
            fj.myY +=1;
            if(fj.myY==fj.heightY) fj.myY=0;
          }else if(myIN.equals("west")){
            fj.myX -=1;
            if(fj.myX<0) fj.myX=fj.widthX-1;
          }else if(myIN.equals("east")){
            fj.myX +=1;
            if(fj.myX==fj.widthX) fj.myX=0;
          }else if(myIN.equals("attack")){
            fj.doAttack();
          }else if(myIN.equals("weapon")){
            System.out.println("I'll be using my " + fj.myWeapon[fj.myLevel] + " to attack\n");
          }else if(myIN.equals("treasure")){
            fj.doTreasure();
          }else if(myIN.equals("status")){
            fj.doStatus();
        System.out.print("I am in room: " + fj.myX + ", " + fj.myY + " I have " + fj.myHP + " hit points and " + fj.myTreasure + " treasure ");
        if(fj.room[fj.myX][fj.myY].monster!=null){
          System.out.print("There is a ");
          if(fj.room[fj.myX][fj.myY].monster.hp<=0) System.out.print("dead ");
          System.out.println(fj.room[fj.myX][fj.myY].monster.name + " here!");
        System.out.println("\n");
      System.out.println("Bye!");
    }

  • I need to create  .pst  ext . file using java,whi will import in ms outlook

    {color:#ff0000}*I need to create .PST extension file using java which will be able to import in ms outlook,and that .pst file will contain root folder (like Personal Folders) and inbox,sent mail*{color}
    give me some hint It is essential task .we have to implement code in  java

    I'm using the thin drivers.
    The answer to your question is no, you do not need to create a DSN to connect to Oracle. The Oracle thin driver is all that is required. Your code looks OK to me, I'm assuming that you xxx'd out the IP, and that you are using a real IP in the actual code.
    The message you got back is pretty generic, but can indicate that the Oracle database listener isn't available. Perhaps the database is on a different port, or perhaps the listerner isn't running. Perhaps you have the IP address wrong.
    So, to be very basic:
    1) Can you ping the server you are trying to connect to? This makes sure you are using a valid IP address.
    2) Can you connect to the Oracle server from an Oracle client? This makes sure the listener is running properly, and that you know the correct port number and login information (The port number could be in a local or server based TNS file, or available through an Oracle names server. You might try using the program tnsping if it is available on the client for validation.
    3) If you can do 1 and 2, then be sure you are using the same connection parameters (server, port userid and password) that worked with 2.
    4) Verify that you are using (pointing to) the correct set of Oracle classes for the thin connection. This can be tricky if you have different versions of Oracle on the client then on the server, but is documented on the Oracle website.
    5) If everything checks out, you might want to verify that you are using the most recent versions of the thin drivers, including the Oracle patches.
    Hope it helps - good luck,
    Joel

  • Creating Windows Based Service in Java

    Hey is there any way I can create windows based service in Java. My need is that no one has to log on to the machine to start a java application.
    Thanks in advance

    This can be done, although its been so long I forget the exact details. There are some utilities out there that will let you run any program as a service. I remember I created a batch file to run my java program in and then set the batch file up as a service.
    Hope that helps,
    Peter

  • I need help on a maze game...

    I need to create a maze game, consist of a 14x18 grid that contains various obstacles. At the beginning of the game, the player is positioned at the upper left-hand corner of the grid. Each space of the board may have one of the following items in it: an immovable block, a moveable block, a bomb, or nothing. The items in the game have the following behavior:
    1. The player is controlled by the user. The player may move up, down, left, or right.
    2. An empty space is empty. Anything may move into an empty space.
    3. An immovable block cannot move. Nothing may move the grid space that an immovable block occupies.
    4. A moveable block can be pushed by the user. It cannot be pushed off of the grid. It cannot be pushed onto a space that an immovable block occupies. A movable block can be pushed into a space that is occupied by another moveable block provided that the second moveable block can move in turn.
    5. A bomb space looks just like an empty space, however it's behavior is quite different. Only when something moves into its space does it become visible. If a player moves into the space, the bomb explodes, killing the player. If a moveable piece is moved into a bomb space, the bomb becomes visible. The bomb will still be active, meaning a player will still want to avoid this grid location.
    The goal of the game is for the player to move from the upper left-hand corner to any grid location in the rightmost column. The player is moved by the input entered by the user.
    So far, I have succesfully made the Simple console input for this game. The source code is as following.
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.io.IOException;
    public class SimpleConsoleInput
    * Get a single character from the user
    * @return value entered by the user
    public char getChar()
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);
    System.out.print(":");
    // Declare and initialize the char
    char character = ' ';
    // Get the character from the keyboard
    boolean successfulInput = false;
    while( !successfulInput )
    try
    character = (char) br.read();
    successfulInput = true;
    catch (NumberFormatException ex)
    System.out.println("Please enter a character: ");
    catch(Exception ex)
    System.out.println(ex);
    System.exit(0);
    // Return the character obtained from the keyboard
    return character;
    * Get a single character from the user
    * @return value entered by the user
    * @param prompt - String to prompt the user with
    public char getChar(String prompt)
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);
    System.out.print(prompt + ":");
    // Declare and initialize the char
    char character = ' ';
    // Get the character from the keyboard
    boolean successfulInput = false;
    while( !successfulInput )
    try
    character = (char) br.read();
    successfulInput = true;
    catch (NumberFormatException ex)
    System.out.println("Please enter a character: ");
    catch(Exception ex)
    System.out.println(ex);
    System.exit(0);
    // Return the character obtained from the keyboard
    return character;
    * Get a double from the user
    * @return value entered by the user
    public double getDouble()
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    System.out.print(":");
    // Declare and initialize the double
    double number = 0.0;
    // Get the number from the keyboard
    boolean successfulInput = false;
    while( !successfulInput )
    try
    String line = br.readLine();
    number = Double.parseDouble(line);
    successfulInput = true;
    catch (NumberFormatException ex)
    System.out.println("Please enter a double: ");
    catch(Exception ex)
    System.out.println(ex);
    System.exit(0);
    // Return the number obtained from the keyboard
    return number;
    * Get a double from the user
    * @return value entered by the user
    * @param prompt - String to prompt the user with
    public double getDouble(String prompt)
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);
    System.out.print(prompt + ":");
    // Declare and initialize the double
    double number = 0.0;
    // Get the number from the keyboard
    boolean successfulInput = false;
    while( !successfulInput )
    try
    String line = br.readLine();
    number = Double.parseDouble(line);
    successfulInput = true;
    catch (NumberFormatException ex)
    System.out.println("Please enter a double: ");
    catch(Exception ex)
    System.out.println(ex);
    System.exit(0);
    // Return the number obtained from the keyboard
    return number;
    * Get an int from the user
    * @return value entered by the user
    public int getInt()
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);
    System.out.print(":");
    // Declare and initialize the int
    int number = 0;
    // Get the number from the keyboard
    boolean successfulInput = false;
    while( !successfulInput )
    try
    String line = br.readLine();
    number = Integer.parseInt(line);
    successfulInput = true;
    catch (NumberFormatException ex)
    System.out.println("Please enter an integer: ");
    catch(Exception ex)
    System.out.println(ex);
    System.exit(0);
    // Return the number obtained from the keyboard
    return number;
    * Get an int from the user
    * @return value entered by the user
    * @param prompt - String to prompt the user with
    public int getInt(String prompt)
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);
    System.out.print(prompt + ":");
    // Declare and initialize the int
    int number = 0;
    // Get the number from the keyboard
    boolean successfulInput = false;
    while( !successfulInput )
    try
    String line = br.readLine();
    number = Integer.parseInt(line);
    successfulInput = true;
    catch (NumberFormatException ex)
    System.out.println("Please enter an integer: ");
    catch(Exception ex)
    System.out.println(ex);
    System.exit(0);
    // Return the number obtained from the keyboard
    return number;
    * Get a String from the user
    * @return value entered by the user
    public String getString()
    BufferedReader console = new BufferedReader(new InputStreamReader(System.in));
    System.out.print(":");
    String name = null;
    // Get the string from the keyboard
    boolean successfulInput = false;
    while( !successfulInput )
    try
    name = console.readLine();
    successfulInput = true;
    catch (NumberFormatException ex)
    System.out.println("Please enter a string: ");
    catch(Exception ex)
    System.out.println(ex);
    System.exit(0);
    return name;
    * Get a String from the user
    * @return value entered by the user
    * @param prompt - String to prompt the user with
    public String getString(java.lang.String prompt)
    BufferedReader console = new BufferedReader(new InputStreamReader(System.in));
    System.out.print(prompt + ":");
    String name = null;
    // Get the string from the keyboard
    boolean successfulInput = false;
    while( !successfulInput )
    try
    name = console.readLine();
    successfulInput = true;
    catch (NumberFormatException ex)
    System.out.println("Please enter a string: ");
    catch(Exception ex)
    System.out.println(ex);
    System.exit(0);
    return name;
    * The main program for the SimpleInput class
    * @param args - The command line arguments
    public static void main(java.lang.String[] args)
    SimpleConsoleInput i = new SimpleConsoleInput();
    i.getString("Please Enter an Integer for me");
    Now is the bard part for me...
    I need to generate a random maze wioth those items. So far I can only make the maze using a template. The part of maze generator is given below...
    public class Maze extends Applet {
    String levels[] = {
    "M^^^^#####" +
    "M^^^^# #" +
    "M^^^^#$ #" +
    "M^^### $##" +
    "M^^# $ $ #" +
    "M### # ## #^^^######" +
    "M# # ## ##### ..#" +
    "M# $ $ ..#" +
    "M##### ### #@## ..#" +
    "M^^^^# #########" +
    "M^^^^#######",
    "M############" +
    "M#.. # ###" +
    "M#.. # $ $ #" +
    "M#.. #$#### #" +
    "M#.. @ ## #" +
    "M#.. # # $ ##" +
    "M###### ##$ $ #" +
    "M^^# $ $ $ $ #" +
    "M^^# # #" +
    "M^^############",
    "M^^^^^^^^########" +
    "M^^^^^^^^# @#" +
    "M^^^^^^^^# $#$ ##" +
    "M^^^^^^^^# $ $#" +
    "M^^^^^^^^##$ $ #" +
    "M######### $ # ###" +
    "M#.... ## $ $ #" +
    "M##... $ $ #" +
    "M#.... ##########" +
    "M########M",
    "M^^^^^^^^^^^########" +
    "M^^^^^^^^^^^# ....#" +
    "M############ ....#" +
    "M# # $ $ ....#" +
    "M# $$$#$ $ # ....#" +
    "M# $ $ # ....#" +
    "M# $$ #$ $ $########" +
    "M# $ # #" +
    "M## #########" +
    "M# # ##" +
    "M# $ ##" +
    "M# $$#$$ @#" +
    "M# # ##" +
    "M###########",
    "M^^^^^^^^#####" +
    "M^^^^^^^^# #####" +
    "M^^^^^^^^# #$## #" +
    "M^^^^^^^^# $ #" +
    "M######### ### #" +
    "M#.... ## $ $###" +
    "M#.... $ $$ ##" +
    "M#.... ##$ $ @#" +
    "M######### $ ##" +
    "M^^^^^^^^# $ $ #" +
    "M^^^^^^^^### ## #" +
    "M^^^^^^^^^^# #" +
    "M^^^^^^^^^^######",
    "M######^^###" +
    "M#.. #^##@##" +
    "M#.. ### #" +
    "M#.. $$ #" +
    "M#.. # # $ #" +
    "M#..### # $ #" +
    "M#### $ #$ #" +
    "M^^^# $# $ #" +
    "M^^^# $ $ #" +
    "M^^^# ## #" +
    "M^^^#########",
    "M^^^^^^^#####" +
    "M^####### ##" +
    "M## # @## $$ #" +
    "M# $ #" +
    "M# $ ### #" +
    "M### #####$###" +
    "M# $ ### ..#" +
    "M# $ $ $ ...#" +
    "M# ###...#" +
    "M# $$ #^#...#" +
    "M# ###^#####" +
    "M####",
    "M^^^^^^^^^^#######" +
    "M^^^^^^^^^^# ...#" +
    "M^^^^^^##### ...#" +
    "M^^^^^^# . .#" +
    "M^^^^^^# ## ...#" +
    "M^^^^^^## ## ...#" +
    "M^^^^^### ########" +
    "M^^^^^# $$$ ##" +
    "M^##### $ $ #####" +
    "M## #$ $ # #" +
    "M#@ $ $ $ $ #" +
    "M###### $$ $ #####" +
    "M^^^^^# #" +
    "M^^^^^########",
    "M^###^^#############" +
    "M##@#### # #" +
    "M# $$ $$ $ $ ...#" +
    "M# $$$# $ #...#" +
    "M# $ # $$ $$ #...#" +
    "M### # $ #...#" +
    "M# # $ $ $ #...#" +
    "M# ###### ###...#" +
    "M## # # $ $ #...#" +
    "M# ## # $$ $ $##..#" +
    "M# ..# # $ #.#" +
    "M# ..# # $$$ $$$ #.#" +
    "M##### # # #.#" +
    "M^^^^# ######### #.#" +
    "M^^^^# #.#" +
    "M^^^^###############",
    "M^^^^^^^^^^####" +
    "M^^^^^####^# #" +
    "M^^^### @###$ #" +
    "M^^## $ #" +
    "M^## $ $$## ##" +
    "M^# #$## #" +
    "M^# # $ $$ # ###" +
    "M^# $ # # $ #####" +
    "M#### # $$ # #" +
    "M#### ## $ #" +
    "M#. ### ########" +
    "M#.. ..#^####" +
    "M#...#.#" +
    "M#.....#" +
    "M#######",
    "M^^####" +
    "M^^# ###########" +
    "M^^# $ $ $ #" +
    "M^^# $# $ # $ #" +
    "M^^# $ $ # #" +
    "M### $# # #### #" +
    "M#@#$ $ $ ## #" +
    "M# $ #$# # #" +
    "M# $ $ $ $ #" +
    "M^#### #########" +
    "M^^# #" +
    "M^^# #" +
    "M^^#......#" +
    "M^^#......#" +
    "M^^#......#" +
    "M^^########",
    "M################" +
    "M# #" +
    "M# # ###### #" +
    "M# # $ $ $ $# #" +
    "M# # $@$ ## ##" +
    "M# # $ $ $###...#" +
    "M# # $ $ ##...#" +
    "M# ###$$$ $ ##...#" +
    "M# # ## ##...#" +
    "M##### ## ##...#" +
    "M^^^^##### ###" +
    "M^^^^^^^^# #" +
    "M^^^^^^^^#######",
    "M^^^#########" +
    "M^^## ## #####" +
    "M### # # ###" +
    "M# $ #$ # # ... #" +
    "M# # $#@$## # #.#. #" +
    "M# # #$ # . . #" +
    "M# $ $ # # #.#. #" +
    "M# ## ##$ $ . . #" +
    "M# $ # # #$#.#. #" +
    "M## $ $ $ $... #" +
    "M^#$ ###### ## #" +
    "M^# #^^^^##########" +
    "M^####",
    "M^^^^^^^#######" +
    "M^####### #" +
    "M^# # $@$ #" +
    "M^#$$ # #########" +
    "M^# ###......## #" +
    "M^# $......## # #" +
    "M^# ###...... #" +
    "M## #### ### #$##" +
    "M# #$ # $ # #" +
    "M# $ $$$ # $## #" +
    "M# $ $ ###$$ # #" +
    "M##### $ # #" +
    "M^^^^### ### # #" +
    "M^^^^^^# # #" +
    "M^^^^^^######## #" +
    "M^^^^^^^^^^^^^####",
    "M^^^^#######" +
    "M^^^# # #" +
    "M^^^# $ #" +
    "M^### #$ ####" +
    "M^# $ ##$ #" +
    "M^# # @ $ # $#" +
    "M^# # $ ####" +
    "M^## ####$## #" +
    "M^# $#.....# # #" +
    "M^# $..**. $# ###" +
    "M## #.....# #" +
    "M# ### #######" +
    "M# $$ # #" +
    "M# # #" +
    "M###### #" +
    "M^^^^^#####",
    "M#####" +
    "M# ##" +
    "M# #^^####" +
    "M# $ #### #" +
    "M# $$ $ $#" +
    "M###@ #$ ##" +
    "M^# ## $ $ ##" +
    "M^# $ ## ## .#" +
    "M^# #$##$ #.#" +
    "M^### $..##.#" +
    "M^^# #.*...#" +
    "M^^# $$ #.....#" +
    "M^^# #########" +
    "M^^# #" +
    "M^^####",
    "M^^^##########" +
    "M^^^#.. # #" +
    "M^^^#.. #" +
    "M^^^#.. # ####" +
    "M^^####### # ##" +
    "M^^# #" +
    "M^^# # ## # #" +
    "M#### ## #### ##" +
    "M# $ ##### # #" +
    "M# # $ $ # $ #" +
    "M# @$ $ # ##" +
    "M#### ## #######" +
    "M^^^# #" +
    "M^^^######",
    "M^^^^^###########" +
    "M^^^^^# . # #" +
    "M^^^^^# #. @ #" +
    "M^##### ##..# ####" +
    "M## # ..### ###" +
    "M# $ #... $ # $ #" +
    "M# .. ## ## ## #" +
    "M####$##$# $ # # #" +
    "M^^## # #$ $$ # #" +
    "M^^# $ # # # $## #" +
    "M^^# #" +
    "M^^# ########### #" +
    "M^^####^^^^^^^^^####",
    "M^^######" +
    "M^^# @####" +
    "M##### $ #" +
    "M# ## ####" +
    "M# $ # ## #" +
    "M# $ # ##### #" +
    "M## $ $ # #" +
    "M## $ $ ### # #" +
    "M## # $ # # #" +
    "M## # #$# # #" +
    "M## ### # # ######" +
    "M# $ #### # #....#" +
    "M# $ $ ..#.#" +
    "M####$ $# $ ....#" +
    "M# # ## ....#" +
    "M###################",
    "M^^^^##########" +
    "M##### ####" +
    "M# # $ #@ #" +
    "M# #######$#### ###" +
    "M# # ## # #$ ..#" +
    "M# # $ # # #.#" +
    "M# # $ # #$ ..#" +
    "M# # ### ## #.#" +
    "M# ### # # #$ ..#" +
    "M# # # #### #.#" +
    "M# #$ $ $ #$ ..#" +
    "M# $ # $ $ # #.#" +
    "M#### $### #$ ..#" +
    "M^^^# $$ ###....#" +
    "M^^^# ##^######" +
    "M^^^########"
    final static char wall = '#';
    final static char floor = ' ';
    final static char me = '@';
    final static char bomb = '&';
    final static char movableBlock = '*';
    final static char goal = '.';
    Would someone please help me on this game...

    More information about this game:
    The game should generate a random obstacle course for the player. The first column of the grid, however, should consist of all empty pieces, with the exception of the upper left-hand corner, which is the grid location where the player initially resides.
    Enter a loop in which the following things happen (not necessarily in this order):
    Print the current board configuration. Additionally, a key should be printed describing what each piece is.
    Get an action from the user. The player can move up, down, left, or right. Use the following controls: up = 'i', down = 'm', left = 'j', right = 'k'. The player can move at most one block at a time. Of course, if the player tries to move into a spot occupied by an immovable block, the player will not move.
    Inform the player whether they have won, or if they have lost (a player loses if they step on a bomb piece).
    If the player types 'q', the game should terminate.
    I am still stuck on this maze generator stuff.... Please help me....

  • Anybody know where I could download free text based games?

    Hi, I own a MacBook Pro that runs OS X 10.7.2, does anybody know a website were I could download free text based games? I would really appreciate it, and if any one knows another game, other than the command emacs -batch -l dunnet, that would be awesome too.
    Thanks, James

    You can't forget Zork I, II, III.   You need to download Boxer to run DOS games (in other words, don't download the Mac Version, because it needs to run in OS9 to work). You can also play it online just google it.
    Go south. 
    You have entered a forest with a tall tree.
    Climb tree. 
    You are at the top of the tree and you can see Cupertino off in the distance.  A troll followed you up the tree.
    Kill troll with sword. 
    Troll dies easily since it couldn't defend itself while climbing tree.
    Eat dead troll. 
    Nom nom.  Could have used a little salt.
    Message was edited by: OrangeMarlin

  • Ideas For A Text-Based Game

    I tried working on Graphics a while ago, but I didn't have too much luck with that ;)
    Just wondering if anyone here has any ideas about a 'fun' text-based game, that wouldn't be really based on RPG style stuff, because I don't really want to bother with having characters save and stuff(I kno how to though...)
    Something like Rock/Paper/Siscors(spelling? lol), but kinda more adicting...oh right, forgot to tell you...idea for a MULTIPLAYER text-based game ;)
    Thanks
    -Been trying to think of a good idea all day, no luck ;)

    Think of an existing exciting game, and make a clone. Thinking of new games is hard.
    Scissors.
    Addicting.

  • Uber Noob Needs Help Creating website!

    I need help creating my webpage: It has a textbox on it were
    the user enters a URL and it then redirects the end user to that
    URL when they press the GO Button. It also has a check box saying
    "Hide my IP", If the end user clicks this box and then clicks go
    they will be directed to the website they stateted in the Textbox
    but this time it shall mask there IP Address so they can bypass
    proxys and surf anonomosly. Please can someone give me some HTML
    code i could use for this site or a Link to a website that can give
    me the code.

    I assume the application is connecting to Oracle using an application ID/password. If so, check to see if that user has a private synonyn to the table. If so drop it since you have a public synonym.
    Verify that the public synonym is in fact correct. Drop and recreate the public synonym if you cannot select against the synonym name using an ID that can perform select * from inhouse.icltm where rownum = 1. That is if this other user cannot issue select * from icltm where rownum = 1 without an error.
    Check that the application ID has the necessary object privileges on the table.
    Queries you need
    select * from dba_synonyms
    where table_owner = 'INHOUSE'
    and table_name = 'ICLTM'
    You may find both public and private synonms. Either fix or delete. (Some may reference someelses.icltm table if one exists)
    select * from dba_tab_privs
    where table_name = 'ICLTM'
    and owner = 'INHOUSE'
    Note - it is possible to create mixed case or lower case object names in Oracle by using double quotes around the name. Do not do this, but do look to see that this was not done.
    You could also query dba_objects for all object types that have the object_name = 'ICLTM'
    HTH -- Mark D Powell --

  • HT203200 I need help on purchasing a game I forgot my security question answers. and it's been awhile since I downloaded anything.. how do I find out the answers or change them without knowing the old answers??

    I need help on purchasing a game I forgot my security question answers. and it's been awhile since I downloaded anything.. how do I find out the answers or change them without knowing the old answers??

    Alternatives for Help Resetting Security Questions and Rescue Mail
         1. Apple ID- All about Apple ID security questions.
         2. Rescue email address and how to reset Apple ID security questions
         3. Apple ID- Contacting Apple for help with Apple ID account security.
         4. Fill out and submit this form. Select the topic, Account Security.
         5.  Call Apple Customer Service: Contacting Apple for support in your
              country and ask to speak to Account Security.
    How to Manage your Apple ID: Manage My Apple ID

  • Hello need help I download a game from 4shared and it an iPhone game . It show up and my iTunes but I can't sync it to my phone I need help

    Hello need help I download a game from 4shared and it an iPhone game . It show up and my iTunes but I can't sync it to my phone I need help

    Wowowowow I was told I can get any app from the net and it will work thank

  • Need help creating actionListener for an array of text fields

    I am working on a school project, so I am very new to Java. I have a program which is basically a unit converter. Each unit type has its own tab. I was able to dynamically create text fields in each tab and now I need to add actionListener to each of those text fields. Probelm is, the text fields are not really unique. I guess they're only unique within their tab. So now I am having difficulty referring to my text fields. If you look at my actionListener in the code below, I am trying to refer to it as unitTFs[0].getText() and that's not working. Please help. Thanks in advance.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class UnitConverter extends JPanel
    public UnitConverter()
    String[] lengthUnits = {"cm","m","inch","feet","yard","mile"};
    String[] areaUnits = {"m2","a","feet2","yd2","Acre","ha"};
    String[] massUnits = {"g","kg","ton","ounce","pound"};
    String[] volumeUnits = {"liter","m3","inch3","feet3","Gallon","Barrel"};
    String[] tempUnits = {"C","F"};
    ImageIcon lengthICN = new ImageIcon("java-swing-tutorial.JPG");
    ImageIcon areaICN = new ImageIcon("java-swing-tutorial.JPG");
    ImageIcon massICN = new ImageIcon("java-swing-tutorial.JPG");
    ImageIcon volumeICN = new ImageIcon("java-swing-tutorial.JPG");
    ImageIcon tempICN = new ImageIcon("java-swing-tutorial.JPG");
    JTabbedPane tabPaneJTP = new JTabbedPane();
    JPanel lengthPNL = tabContents(lengthUnits);
    tabPaneJTP.addTab("Length", lengthICN, lengthPNL);
    tabPaneJTP.setSelectedIndex(0);
    JPanel areaPNL = tabContents(areaUnits);
    tabPaneJTP.addTab("Area", areaICN, areaPNL);
    JPanel massPNL = tabContents(massUnits);
    tabPaneJTP.addTab("Mass", massICN, massPNL);
    JPanel volumePNL = tabContents(volumeUnits);
    tabPaneJTP.addTab("Volume", volumeICN, volumePNL);
    JPanel tempPNL = tabContents(tempUnits);
    tabPaneJTP.addTab("Temperature", tempICN, tempPNL);
    //Add the tabbed pane to this panel.
    setLayout(new GridLayout(1, 1));
    add(tabPaneJTP);
    protected JPanel tabContents(String[] units)
    JPanel tabPNL = new JPanel();
    JTextField[] unitTFs = new JTextField[units.length];
    JLabel[] unitLs = new JLabel[units.length];
    for (int i = 0; i < units.length; i++)
    unitTFs[i] = new JTextField("0");
    unitLs[i] = new JLabel(units);
    tabPNL.add(unitTFs[i]);
    tabPNL.add(unitLs[i]);
    tabPNL.setLayout(new GridLayout(units.length, 1));
    return tabPNL;
    private class CmHandler implements ActionListener
    public void actionPerformed(ActionEvent e)
    double cm, m;
    cm = Double.parseDouble(unitTFs[0].getText());
    public static void main(String[] args)
    JFrame frame = new JFrame("Unit Converter Demo");
    frame.getContentPane().add(new UnitConverter(), BorderLayout.CENTER);
    frame.setSize(500, 500);
    frame.setVisible(true);

    Variables only have scope in the method (or block) in which they are created. That means if you create a variable in one function, you can't use it in another.
    If you want to use a variable in two different functions, you have to make it a member variable.
    [Declaring Member Variables|http://java.sun.com/docs/books/tutorial/java/javaOO/variables.html]

  • HELP NEEDED BADLY, creating Block Avoider game.

    Could anyone please help me with creating a game called block avoider, i have a link here to show what the game should look like. I need alot of help with it so if anyone is good a coding and see`s this as an easy project helping me would be greatly appreciated.
    LINK TO SIMILAR GAME:
    http://scratch.mit.edu/projects/timo4932/82326

    We can help, but we won't do it for you. Start the game, and post a question if you are stuck and need help.

  • Need help created state machine that is time based

    I need help with my labview program. My goal is to write a program that allows the user to turn a toggle button on/off. When they do this it will start a loop witch turns on a digital switch for 45 minutes then off for 30 seconds and on and on till the user toggles the switch off. The timing does not have to be precise. I am using the NI 9476 digital output card.
    I have written the code to turn the switch on/off. I know need to add the looped fuction for on 45 minutes/off 30 seconds. I assume the most efficient method would be using a state machine, but I was having trouble figuring it out.
    Attached is the program I have written thus far without the loops.
    Thanks,
    Barrett
    Solved!
    Go to Solution.
    Attachments:
    Test Setup X01.vi ‏16 KB

    I cannot see your code since I don't have 2010 installed. A state machine would be good approach but in order to allow the user to cancel and possibly abort the process at any time your state machine should have a state such as "Check for timeout". In teh loop containing the state machine use a shift register to pass the desired delay value and the start time time for that particular delay. Once the user starts the process set the delay time to your desired time (45 minutes expressed as seconds) and have another shift register that contains the next state to go to after the delay completes. Use a small delay (100ms to 500ms depending on how accurate you want your times to be) to prevent your state machine from free running and then check the delay again. Use the current time and compare it to the start time. If the desired time has passed then go to the next state. You can store the next state in a shift register. No do the same thing for your Off Time state.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot
    Attachments:
    Simple Delay in State Machine.vi ‏14 KB

  • HELP! Need help generating TEXT-ONLY portal page...

    Text Only Portal Question:
    PLATFORM:
    =================================================================
    Sun Solaris (5.2 if memory serves) for db and mid-tier, running
    8.1.7 DB and 3.0.9 (1.0.2.2) portal.
    THE NEED:
    =================================================================
    I need to display text only portal pages. Some of the more
    detailed concerns at this point are below. Also, I've had an open
    tar on Metalink for about two weeks, and after research from
    their end has resulted in no help.
    THE ISSUES (so far):
    =================================================================
    IMAGES:
    If an anchor [A HREF=...] tag uses an image as it's "text", I
    need to strip out the ALT= text to show inside the anchor. If no
    ALT text is available, then I would like to show the image name
    as a default.
    For example:
    <img src=home.gif
    alt=Home>
    should display as:
    Home
    FORMS:
    How do I get the resulting page from a form (which include the
    login inputs and submit button, search box, advanced search page,
    etc.) to be displayed by the text only page?
    For example:
    When a form is called, the <FORM> elements are as follows:
    METHOD=GET or POST
    ACTION=url (relative or absolute) to the script.
    In this case, the action value is:
    ACTION=/servlet/page?
    pageid=6&dad=portal30&_schema=PORTAL30.
    This calls the advanced search API.
    I would expect that to redirect the browser back to some
    text-only version, the ACTION= element would have to be changed
    to be something like:
    ACTION=[pathscraper]?/servlet/page?
    pageid=6&dad=portal30&_schema=PORTAL30
    REDIRECTION:
    What happens when portal pages redirect internally? How do you
    get back to the text-only page?
    For example:
    The login link on the standard Oracle Portal home page flips
    from url to url to get to the actual login page. Our
    implementation of Oracle portal goes from
    [DOMAIN]/pls/portal30_sso/portal30_sso.wwsso_app_admin.ls_login
    to [domain]/pls/portal30_sso/portal30_sso.login_page.
    Since this is standard Oracle redirection, how can it be
    intercepted so the portal30_sso.login_page can be presented as
    text only?
    TRIED SO FAR:
    =================================================================
    I've written a socket/text scraper in Perl, running it from a web
    server. The problems mentioned above are really causing problems,
    plus the whole cookie thing. Since Oracle Portal tries to push a
    cookie to the client, when the client is another UNIX server,
    the cookie thing doesn't work.
    POSSIBLE OTHER SOLUTIONS:
    =================================================================
    Something...anything. I've tried to think of some method to
    create some sort of PL/SQL procedure to catch the content then
    strip out the HTML calls.
    An Applet to do the same thing, but on the client side, but
    since time is an issue, coding a complete Java applet isn't
    really an option.
    THE CONCLUSION:
    =================================================================
    HELP! I need some help. This is for a client that is government
    funded, and to meet Section 508 (part of the Americans with
    Disabilities Act that states web sites and applications must be
    made accessible. A text-only page is one of the requirements for
    an accessible page.
    Thanks,
    Ryan Stefani
    ps: feel free to contact me via [email protected] or
    [email protected]

    Use Find/Change and the GREP tab.
    Search for .+ and set the Find formatting to find the charcteristics you want.
    What will you do with this text once found? You'll need something to "change" to, either new text or Change Formatting options...

Maybe you are looking for

  • Unable to start presentation services , in OBIEE 11g

    Hi , Unable to start presentation services , in OBIEE 11g : [2013-01-18T13:38:49.000+05:30] [OBIPS] [INCIDENT_ERROR:1] [] [saw.webextensionbase.init] [ecid: ] [tid: ] Invalid item /system/mktgcache/01HW447397/sawguidstate.[[ File:catalogimpl.cpp Line

  • Attached document is deleted

    Hi Friends. In extended classic scenario.In the first time if i create PO with attachment vai shopping cart (sourcing) successful purchase order is created and suppose if i change PO (qty/price etc) Then its Attached document is got deleted in SRM Ca

  • MR 11 not updating the invoicing for services

    Hi All, I have a scenario where the client uses MR11 for clearing the invoices. He does not use MIRO for invoicing. During our observation it is found that using MR11 does not update the invoices for services but the invoices for the material receive

  • Cafe Townsend... SOS

    I am VERY novice to web design and I have problem in the tutorial, chapter 3 of the book "Getting started with Dreamweaver" at #1: Finding the Dreamweaver application folder, #2: Locate the Cafe Townsend and #3: Copy it to a local site folder I creat

  • WD Application acting as an initial logon page

    Hello experts, is it possible to have a Java Web Dynpro application acting as an initial logon page removing the current standard logon functionality? If yes, where is the mapping done? I changed authschemes.xml accordingly, restarted the server but