-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|525|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Link Home -> Help/Tutorials


 
JL235
Created : 09 April 2007
Edited : 09 April 2007

JavaBat

Java Practice Problems

https://www.javabat.com
These are really good. Although it's aimed at helping to teach Java, pretty much all of the problems relate to pretty much any language. Their mainly puzzles about iterating over strings and arrays to create new strings or arrays, and boolean expressions.

Some Java knowledge is required, but mainly about the syntax and many pretty obvious methods such '.length()' and '.charAt()' for Strings.

I've also been told that my (very easy) Java exam will contain one JavaBat problem, so I've decided to do them all.

 

Comments


Monday, 09 April 2007, 16:13
mike_g
Looks cool. I dont know java yet but I might have a play around with it and see what its like.
Tuesday, 10 April 2007, 12:29
Phoenix
I don't know Java either, but with some Googling you can easily find out the names of the methods. I finished a few of them, maybe I'll try a few more later. I like them
Tuesday, 10 April 2007, 12:36
mike_g
Yeah a lot of the methods are the same as Javascript. So I should be somewhat ok. Havent had a go at any of them yet tho.
Tuesday, 10 April 2007, 13:18
JL235
The Java API has a full list of all the methods. But you only really use around 5 of them. Namely 'length', 'charAt', 'indexOf' and 'substring' for the strings and 'length' for arrays.

Even then, you only really use them in their most significant place. Like you won't need to use any string methods with the boolean expression problems.
Thursday, 12 April 2007, 12:11
Phoenix
This makes me realize how bad I am at recursion. I really need to practice that, and beat all the recursion tests.