Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Debug5
- {
- public static void main(String[] args)
- {
- String[] specialties = {"Cardiology", "Emergency", "Stroke", "Burn"};
- for(int a = 0; a < specialties.length; a++) // removed ()
- {
- System.out.println(specialties[a]);
- System.out.println("The length is " + specialties[a].length()); // added ()
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement