Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

Spaces:
KaiquanMah
/
TurkuBasicOOPinJava
Running

App Files Files Community
TurkuBasicOOPinJava / Week 1: Types, condition clauses and loops
21.6 kB
  • 1 contributor
History: 15 commits
KaiquanMah's picture
KaiquanMah
Create 12b. Sum, max of numbers
68e0d9e verified 6 months ago
  • 10a. Logical operators
    567 Bytes
    Create 10a. Logical operators 9 months ago
  • 10b. Print ticket price
    1.7 kB
    int age = Integer.valueOf(reader.nextLine()); 9 months ago
  • 11. Leap year?
    1.85 kB
    boolean div4 = ((yr%4)==0); 9 months ago
  • 12a . Counter
    1.18 kB
    Create 12a . Counter 6 months ago
  • 12b. Sum, max of numbers
    1.57 kB
    Create 12b. Sum, max of numbers 6 months ago
  • 2. Nordic countries in alphabetical order
    1.41 kB
    System.out.println(<some string>); 9 months ago
  • 3. Print the whole sentence
    529 Bytes
    System.out.print("<some str no newline>"); 9 months ago
  • 4. Match expressions and results
    2.8 kB
    Create 4. Match expressions and results 9 months ago
  • 5. Calculate sum, multiplication and division
    1.41 kB
    first*1.0 / second 9 months ago
  • 6. Print a greeting message
    2.83 kB
    Scanner reader = new Scanner(System.in); 9 months ago
  • 7. Minutes in a day
    1.11 kB
    int days = Integer.valueOf(reader.nextLine()) 9 months ago
  • 8a. Condition clauses
    1.64 kB
    if, else if, else 9 months ago
  • 8b. Even or odd?
    1.56 kB
    int remainder = num % 2; 9 months ago
  • 9. Calculate the total salary
    1.48 kB
    Create 9. Calculate the total salary 9 months ago