Check out example codes for "programa que convierete un archi de c a java". It will help you in understanding the concepts better.

Code Example 1

int potencias[NumSemanas][NumDias];
		float mediaD[NumDias],gananciaPS[NumSemanas];
		float potMedia, gananciaTotal,gananciaSemanal;
		int semanas,diasPM,valorLunes,dia,sem,dMax;

Learn ReactJs, React Native from akashmittal.com