So these are the things I learnt today.
Natural Language Processes
Java
Progress is slow, but at least I'm picking up bits and pieces. Today, I tried to write a loop using
for(int item:nums)
{
item=5;
}
to change the values in the nums array. This doesn't work. It does the equivalent to
for(int i=0;i <nums.length;i++)
{
item=nums[i];
item=5;
}
So it was back to the normal for loop
So it was back to the normal for loop
for(int i=0;i <nums.length;i++)
{
nums[i]=5;
}
to do what I wanted to do.
to do what I wanted to do.
No comments:
Post a Comment