Thanks guys for all your help!! :D I'm marking this Solved!
Thanks again!
Type: Posts; User: Melawe
Thanks guys for all your help!! :D I'm marking this Solved!
Thanks again!
I'm having a little trouble understanding the for loop in the StudentGrader class, can you make it a little clearer please?
class StudentGrades {
public static void main(String...
I tried a few more times but I just couldn't figure it out, I finally directed my browser to the site today and here is the code
class StudentGrades {
public static void main(String...
I finally got your code!!! :D
[code]class JForumtest{
public static void main(String[] args){
int twoDim[][] = {
{ 1, 2, 3 },
{ 4, 5, 6 } };
...
Hiya guys, Thanks for your help! But I can't seem to figure it out, i'm gonna head to the books site and see the code later(if I don't get posts telling me to "wait for a sec!!" :/).
Thanks Faz I got it with no errors! One thing though, how can I make a single array element equal to more than one number this wont work
grd[0] = 60,75,93;
//or
grd[0] = {60,75,93};
and...
Could you tell me whats wrong in this
class NewAry {
public static void main(String[] args){
int[] stud = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
int[]grd= new int[14];...
When I tried it out i got this result:
run:
[[I@3e25a5
class JForumtest{
public static void main(String[] args){
int twoDim[][] = {
{ 1, 2, 3 },
Sorry guys I didn't reply in a while. I'm trying some things out, nothing worked yet but here is what I was doing and what I got. I thought it would be easier to do if I knew how to do it in one dim...
Yep thats what it says.
Okay thanks everyone!! :D Cloud you guys help me with one more thing please, storing data in one dim and storing some other data in the second dim.
Thanks!
Can you tell me what the I in
twoDim[i] = new int[4]; stands for?
Here is what i got:
run:
0
But I still don't understand what is happening in the for loop.
I tried them and here is what I got, I started by the one I understood completely
My code:
class Test {
public static void main(String[] args) {
int[][] my2dArray = new...
I tried but i couldn't do any thing cause I didn't understand the examples.
_________________________________________
Tryin and Readin and surely some Gamin!!
First sorry i forgot to include this link Programming with Java in 24 Hours: Storing Information with Arrays
You can see the full code there, its the one called StudentGrader.java.
And cloud you...
Hi guys and girls, nice to post again. Once again I have a problem, :P this time I have to create a.. welll here is what is says
"Create a program that uses a multidimensional array to...