Hey guys i was wondering whether anyone could help me out ive got to create a program that creates three directory entries and place them in an array of length 10. Once the entries have been placed in the array a for loop should be used to retrieve each entry from the array and display it on the screen. im stuck lol this is what i have so far. im unsure as to how i can print off my array as a string?
import java.util.*; public class ArrayEntries { public static void main(String[] args) { Entry [] = new Entry[10]; // create three entries and store in array Entry [0] = ("Garry Julesl"); Entry [1] = ("143 Treseifion"); Entry [2] = ("01407760799"); Entry [3] = ("Liza Williams"); Entry [4] = ("2 Gil Street"); Entry [5] = ("01407723233"); Entry [6] = ("Louise Jones"); Entry [7] = ("2 Llainoch"); Entry [8] = ("01407760000"); // print only the three entries for(int i= 0; i< Entry.length; i++) { System.out.println(Entry[i]); } } }