https://github.com/itsmaheshkariya/dscode
https://github.com/itsmaheshkariya/dscode
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/itsmaheshkariya/dscode
- Owner: itsmaheshkariya
- Created: 2020-12-21T13:49:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-30T14:46:18.000Z (over 4 years ago)
- Last Synced: 2025-01-06T01:09:13.905Z (4 months ago)
- Language: JavaScript
- Size: 149 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Notes
## List of Dotnet
```cs
var collection = new List();
collection.Add("sun");
collection.Add("mun");
collection.Clear();
collection.Remove("sun");
collection.RemoveAt("sun");
collection.RemoveRange("sun");
collection.IndexOf("sun");
collection.Count();
collection.RemoveAll();
collection.RemoveAll(newArray);foreach (var item in collection)
{
Console.WriteLine(item);
}```
## Dotnet List of Class
```cs
using System;
// using System.Linq;
using System.Collections.Generic;public class Program
{
public static void Main()
{
var students = new List() {
new Student(){ Id = 1, Name="Bill" },
new Student(){ Id = 2, Name="Steve" },
new Student(){ Id = 3, Name="Ram" },
new Student(){ Id = 4, Name="Abdul" },
new Student(){ Id = 5, Name="Bill" }
};
//get all students whose name is Bill
// var studNames = from s in students where s.Name == "Bill" select s;
foreach(var student in students)
Console.WriteLine(student.Id + ", " +student.Name);
}
}public class Student
{
public int Id { get; set; }
public string Name { get; set; }
}```
## Java Array List
```java
import java.util.ArrayList;class Main {
public static void main(String[] args) {ArrayList items= new ArrayList();
items.add("ok");
items.add("dmru");
items.remove("dmru");
for(String item:items){
System.out.println(item);
}
}
}
```
`EBITDA = Net Income + Interest + Taxes + Depreciation + Amortization`