Groovy web console

subscribe to the feed Subscribe
to this
site
variabile (via #groovywebconsole)
tweet this snippet Tweet
this
script

variabile

Published 10 months ago by zcsik with tags ITScool
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
package ro.tutorial;
public class TutorialMain {
	public static void main(String[] args) {
  System.out.print("Hello, students! Media = ");
  int nota = 7;
  int nota2 = 5;
  nota = 8;
  float media = ((float)nota + (float)nota2) / 2;
  
  float valoareCuVirgula = 4.5f;
  System.out.println(media);
  
  char litera = 'a';
  System.out.println(litera);
  
  media = media + 1f;
  
  
	}
}