package arrays;
public class Arrays
{
public static void main(String[] args) {
String strTextTmp = „“;
char [] chaTextComplete; //
char [] [] chCoded = new char [3] [6];
int y = 0;for (int i = 0; i < args.length; i++) if (strTextTmp == "") strTextTmp = strTextTmp + args[i]; else strTextTmp = strTextTmp + " "+ args[i]; chaTextComplete = strTextTmp.toCharArray(); for (int i = 0; i < 3; i++) { for (int z = 0; z < 6; z++) { if (y < 16) { chCoded [i] [z] = chaTextComplete [y]; System.out.print(chaTextComplete [y]); y++; } } System.out.println(); } for (int z = 0; z < 6; z++) { for (int i = 0; i < 3; i++) { System.out.print(chCoded [i] [z]); } } } }
Danke für’s Gespräch! :flenn:
Schreibe den ersten Kommentar