java - I need the length of an array element, and then print the last character -
so, today, given school project, , need help. i need find first , last letter of each element in array, , print it. of java people out there, please tell me function, method, or bit of code need in order this? one of issues comes when compile , run says charat(a);, tells me cannot take character there, whatever reason. so, if me work out, i'll grateful, due tonight, , cannot figure out. thanks much. /** * write description of class pokemon here. * * @author (your name) * @version (a version number or date) */ import java.util.scanner; public class pokemon { public static void main (string [ ] args) { scanner scan = new scanner(system.in); string array [ ] = new string [ 10 ]; array [ 0 ] = "charizard"; array [ 1 ] = "pikachu"; array [ 2 ] = "jigglypuff"; array [ 3 ] = "timburr"; array [ 4 ] = "conkeldurr"; array [ 5 ] = "gurdurr"; system.out.println("-----...