Convert structs in C++ to class in Java : <p>I have a code written in C++ which use struct and i want that code to be converted in java.</p>

<pre><code>void main(){
  struct phone{
    char name[100];
    char num[10];
  };
  phone book[100];
  for(int i = 0; i&lt;100; i++){
    cin&gt;&gt;book[i].name;
    cin&gt;&gt;book[i].num;
  }
}
</code></pre>

<p>Please help me to convert this code to java</p>
