在C#中我们有以下界面:
public interface IList<T> : ICollection<T>, IEnumerable<T>, IEnumerable
{
T this [int index] { get; set; }
int IndexOf (T item);
void Insert (int index, T item);
void RemoveAt (int index);
}
Run Code Online (Sandbox Code Playgroud)
我不明白这条线
T this [int index] { get; set; }
Run Code Online (Sandbox Code Playgroud)
这是什么意思 ?
该类旨在确定文本的语言; 用户必须输入英语,丹麦语,意大利语和拉丁语的4个文本,然后输入他想要确定其语言的文本.控制台说
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at Riconoscimento2.creaTabellaTotale(Riconoscimento2.java:365)
at Riconoscimento2.main(Riconoscimento2.java:25)
Run Code Online (Sandbox Code Playgroud)
我在运行配置中使用eclipse - 我写的参数-Xms2g-Xmx3g.我不明白问题出在哪里.
代码是
import java.io.*;
import java.util.*;
import prog.io.*;
public class Riconoscimento2 {
public static void main(String[] args) {
char[] array = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', ' '};
System.out.println("Immetti l'intero n per il calcolo degli n-grammi "); // questa istruzione richiede di immettere …Run Code Online (Sandbox Code Playgroud)