I am working on a school project, make a yahtzee game in Java.
Here for i need to use input from the keyboard.
I managed to get some keyboard input/output program working.
But I still fail to use this in a further program.
here is the code i found.
[code]
import java.io.*;
public class InvoerToetsenbord
{
public static void main ( String [] args)
{
BufferedReader toetsenbord = new Buffered Reader ( new InputStreamReader ( System.in ) );
int i = 0;
double d = 0.0;
System.out.println ( “Toetsenbord gemaakt” );
try
{
String s = toetsenbord.readLine();
System.out.println(“U wrote ” + s);
}
catch ( IOException ioe )
{
System.out.println ( “Fout bij inlezen” );
}
}
}
I think the following code declares where a program starts instead of a normal method is being declared.
[code]public static void main(String[] args)
Am i right with this, or what does it means?
Gonna try some more, see if i can fix it before i get an answer here =)