Tips On The AP FR 24
Tips On The AP FR 24
www.apluscompsci.com
Full Curriculum Solutions
M/C Review Question Banks
Live Programming Problems
Tons of great content!
www.facebook.com/APlusComputerScience
Make a Class
– create a class
Array/ArrayList
– get,set,remove,add,size - [],length
Matrices
– nested loops - array of arrays concepts
}
return cnt;
}
Visit us at
www.apluscompsci.com
Full Curriculum Solutions
M/C Review Question Banks
Live Programming Problems
Tons of great content!
www.facebook.com/APlusComputerScience
34 76 -8 44 22 -998
34 76 -8 44 22 -998
Name Use
import java.util.ArrayList;
© A+ Computer Science - www.apluscompsci.com
List<String> ray; OUTPUT
ray = new ArrayList<String>();
ray.add("hello"); h
ray.add("whoot"); c
ray.add("contests");
out.println(ray.get(0).charAt(0));
out.println(ray.get(2).charAt(0));
}
return true;
}
public ArrayList<String> createList(String target)
{
ArrayList<String> aplus;
aplus = new ArrayList<>();
for( String s : wordList )
{
if(s.startsWith(target))
aplus.add(s.substring(target.length()));
}
return aplus;
}
© A+ Computer Science - www.apluscompsci.com
Typically, 1 question on the A test free
response will require that students
manipulate a 2-dimensional array.
0 1 2
0 0 0 0
1 0 0 0
2 0 0 0
0 0 0 0
1 0 0 0
2 0 0 0
Which 0 0 2 0
array?
1 0 0 0
Which
2 0 0 0
spot?
© A+ Computer Science - www.apluscompsci.com
0 1 2 3 4
0 0 0 0 5 0 mat[2][2]=7;
1 0 0 0 0 0 mat[0][3]=5;
2 0 0 7 0 0 mat[4][1]=3
3 0 0 0 0 0
4 0 3 0 0 0
Make a Class
– create a class
Array/ArrayList
– get,set,remove,add,size - [],length
Matrices
– nested loops - array of arrays concepts