Например:
Код: Выделить всё
package com.khush.distributed.cache;
public class Main {
public static void main(String[] args) {
Cache cache = new Cache(4);
cache.put("1", "1");
cache.put("2", "2");
cache.put("3", "3");
cache.put("4", "4");
cache.printList();
System.out.println();
System.out.println();
cache.get("2");
cache.printList();
cache.put("5", "5");
System.out.println();
System.out.println();
cache.printList();
}
}
Код: Выделить всё
Main.java:5: error: cannot find symbol
Cache cache = new Cache(4);
^
symbol: class Cache
location: class Main
Main.java:5: error: cannot find symbol
Cache cache = new Cache(4);
^
symbol: class Cache
location: class Main
2 errors
[Process exited 1]
Код: Выделить всё
return {
"CRAG666/code_runner.nvim",
config = function()
require("code_runner").setup({
filetype = {
java = {
"cd $dir &&",
"javac $fileName &&",
"java $fileNameWithoutExt",
},
python = "python3 -u",
typescript = "deno run",
rust = {
"cd $dir &&",
"rustc $fileName &&",
"$dir/$fileNameWithoutExt",
},
},
})
vim.keymap.set("n", "r", ":RunCode", { noremap = true, silent = false })
vim.keymap.set("n", "rf", ":RunFile", { noremap = true, silent = false })
vim.keymap.set("n", "rp", ":RunProject", { noremap = true, silent = false })
end,
}
Любая помощь в этом приветствуется, спасибо.
Подробнее здесь: https://stackoverflow.com/questions/783 ... neovim-ide
Мобильная версия