Ich hab seit der 6. Klasse kein Informatik mehr, und in Mathe machen wir nix mit Java . Schule fängt bei mir am Do an.
Ich mache das hier nur zum ersten Mal, und finde kein Tutorial oder so.
Selbsterklärend ist das also leider nicht. Und ich hab kein Buch.
Ich weiß gar nicht, was wovon was bedeutet!
Und um einfach ein Gefühl zu kriegen, hatte ich auf ein Beispiel gehofft.
Dachte, das wären 5 Zeilen oder so...
Hab bisher das hier. Was fehlt?
/**
* Write a description of class Math here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Math
{
// instance variables - replace the example below with your own
private int c; int a; int t;
/**
* Constructor for objects of class Math
*/
public Math()
{
// initialise instance variables
c = 40; a = 2.033 ; t = 12;
}
/**
* An example of a method - replace this comment with your own
*
* @param y a sample parameter for a method
* @return the sum of x and y
*/
public int sampleMethod(int a)
{
// put your code here
return x + y;
}
}