so heres the issue im having. i have this class that im suppose to make for a tester class. i have to declare an array of string at the class level. there is method call to read the context of a file and put into the array. the problem im having is how do i get the number of elements the array needs? i cant change the tester class. iv tried calling a method ie private String[] clocks = new String[index()]; but its saying that the filenotfoundexception needs to be caught or thrown. i threw the exception. any ideas?
Zelores 0 Newbie Poster
stephen84s 550 Nearly a Posting Virtuoso Featured Poster
Zelores 0 Newbie Poster
stultuske 1,116 Posting Maven Featured Poster
stephen84s 550 Nearly a Posting Virtuoso Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.