Java Tutorial - Two dimensional array

preview_player
Показать описание
Two Dimensional array explained with picture and program.
Рекомендации по теме
Комментарии
Автор

Hi, what is the "\t" in line 15? Like a tab function or something?

ThisIsHoof
Автор

I am making a GUI that can take user input of name address and contact but im having a problem on how to gather the user input and put it in an array to print it out in the text area. 


for example the user enters John, new york ... contact is 555.3333.. 


now ill like to enter multiple persons info for example info about a other persons ...  how can i achieve this ? any help would be greatly appreciated. 

jaysun
Автор

Yes its just used for spacing to make the gap "\t" is a tab and "\n" is a newline

GreenAndTheGoldPSN
Автор

srsly thank you you are a good teacher 

welltellhimagain
Автор

ok bit of a feedback there, multi dimensional represents 3d arrays... at least that's what I was expecting, sry

XfStef
Автор

hey umm isn't it supposed to be String[][] names not String names[][]

darcymbadford
Автор

How to compare those two and arrange them using CompareTo method.
String[] A = { "Araina", "Diana", "Joseph", , "Rene", "Peter", "Xena"};
String[] B = { "Alice", "Brian", "Diddy", "Joe", "Sara" };

filinwaa