Skip to content

Commit

Permalink
konstruktør
Browse files Browse the repository at this point in the history
lagde konstruktør
  • Loading branch information
EspenTinius committed Feb 11, 2026
1 parent ef6d943 commit 09a0f2b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/Stock.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package edu.ntnu.idi.idatt2003.g40.mappe;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class Stock {

private final String symbol;
private final String company;
private final List<BigDecimal> prices = new ArrayList<>();

public Stock(String symbol, String company, BigDecimal salesPrice){
this.symbol = symbol;
this.company = company;
}
}

0 comments on commit 09a0f2b

Please sign in to comment.