-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemp.java
41 lines (40 loc) · 1.11 KB
/
temp.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//import java.util.Scanner;
//class Stock
//{
// String symbol;
// String name;
// double previousClosingPrice;
// double currentPrice;
// public Stock(String s,String n)
// {
// symbol=s;name=n;
// }
// public double changePercent()
// {
// return -(previousClosingPrice-currentPrice)/previousClosingPrice;
// }
//}
//
//public class temp {
// public static void main(String[] args) {
// Scanner input = new Scanner(System.in);
// String symbol1=input.next();
// String name1=input.next();
// Stock stock = new Stock(symbol1, name1);
//
// stock.previousClosingPrice = input.nextDouble();
//
// // Input current price
// stock.currentPrice = input.nextDouble();
//
// // Display stock info
// System.out.println(stock.name+"price changed: " + stock.changePercent() * 100 + "%");
// input.close();
// }
//}
public class temp {
public static void main(String[] args) {
java.util.Date date = new java.util.Date();
System.out.println(date.toString());
}
}