Hi there
I've recently written a program in "normal"
Java, just to get the feel for it.
However my real aim is to write the program so it runs on a mobile.
My problem is, and I feared as much, when I simply copy and paste the code from a standard Java project/package to the J2ME project it can't find most of the classes.
My program uses the following classes:
import java.lang.System.out;
import java.util.Scanner;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Random;
import java.io.LineNumberReader;
But with the exception of the IOException the Micro Edition can't find any of them.
How do I find out what their equivalents are (if there are any)?
It is important for me to read in a file (io.File), count the lines (io.LineNumber.Reader), turn the contents into an array of arrays(util.ArrayList), display one of the array items (System.out), get user input (util.Scanner).
For example is there a Micro Edition class = io.LineNumberReader?
Or am I going to have to reinvent the wheel?
Thanks very much in advance.
Dan