# Quick Question About Tables

**URL:** https://discourse.processing.org/t/quick-question-about-tables/3316
**Category:** Coding Questions
**Created:** [September 6, 2018, 1:29pm UTC](https://discourse.processing.org/t/quick-question-about-tables/3316 "2018-09-06T13:29:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dtools22](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dtools22](https://discourse.processing.org/u/dtools22)
#### Post date: [September 6, 2018, 1:29pm UTC](https://discourse.processing.org/t/quick-question-about-tables/3316/1 "2018-09-06T13:29:46Z")

</div>

Hello All,

I have a quick question about how to create new tables. I am working on a data analysis program for poker hands. Each time I do analysis according to certain parameters, I would like the program to create a table. That table logs how many times a particular hand is played according to those parameters. For example

```auto
void MakeATable(HandRange inputhandrange){
   Table results;
   results = new Table();
   results.addColumn("Aces");
   results.addColumn("Total");
   TableRow row1 = results.addRow();
   row1.setString("Aces", "AA");
   row1.setInt("Total", howmanytimesdoesAAoccur);
   saveTable(results, "data/" + inputhandrange + ".csv");
}

```

This code functions but the saveTable() file name looks something like this:

Poker\_Tracker$HandRange@1f4df370.csv

I just want to somehow create a table where the file name matches the name of the hand range I am currently working with. Is there a way I can turn my inputhandrange variable name into a String that can just be put into a save file as it is written?

Thanks as always for the help.

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [September 6, 2018, 3:03pm UTC](https://discourse.processing.org/t/quick-question-about-tables/3316/2 "2018-09-06T15:03:22Z")

</div>

> [@dtools22](#):
>
> … the file name matches the name of the hand range I am currently working with.

```auto
class HandRange {
  String handRangeName;

  @Override String toString() {
    return handRangeName;
  }
}

```

---

<div class="post-metadata">

### Author: ![dtools22](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dtools22](https://discourse.processing.org/u/dtools22)
#### Post date: [September 7, 2018, 7:11pm UTC](https://discourse.processing.org/t/quick-question-about-tables/3316/3 "2018-09-07T19:11:53Z")

</div>

Thank you, I had a feeling it was a simple fix
