list

Java Elenco dei punti

Quindi ho un problema con questa riga di codice. private List<PointF> userPath = new ArrayList<PointF>(); pointF ... elenco sta memorizzando l'oggetto punto movingPoint e quando si sposta il punto cambia così fa ogni elemento che lo contiene.

come implementare un elenco ADT in java

Sono totalmente perso nella mia classe in questo momento e non ho idea di come iniziare anche con questo. Devo essere in grad ... blic int getSize() { return size; } public double getItem(int idx) { myList[i] =idx; return num; } }

Apri i contenuti delle directory e degli elenchi usando Java

Sto tentando di aprire una cartella ed elencarne il contenuto (file). Fondamentalmente ho una cartella superiore contenente d ... ile file : filesInsideDirectory) { System.out.println("File Name : " + file.getName()); } } } Grazie! Jmpman

Java Streams-Cambia campo di un elemento

Ho cercato su Google per un po', ma non sono riuscito a trovare la risposta che sto cercando. Ho un stream di prodotti e o ... icare il valore del campo quantità? I stavo pensando di poter usare .peek(), ma non riuscivo a capire come ottenere questo.

Come aggiungere un elenco a un altro elenco in java

Ecco le mie 2 liste e voglio aggiungere i valori dei libri di lista a book2 per correggere l'output List<Book>books ... in the type List<Book> is not applicable for the arguments (List<Book>) Se conosci la risposta, condividi qui..

Perché non riesco a trovare l'errore del simbolo? Sono cieco / apprendimento Java

import java.util.*; public class centeredAverage { public static void main(int[] nums) { int count = 0; int max = ... numero 16: Impossibile trovare il simbolo Simbolo: metodo sottolista(int,int) Posizione: numeri variabili di tipo int []

List in list in list

There is a certain list - the gray squares are its elements. There can be N of them. Each element of this list can contain an ... неверно точка s2x1 стоит в точке s1x2 This is an addendum to this question: Parse the date and make a list of date range

The Stack class in Java

Which class is better for using the stack in java and why is it better?

List interface and its implementation

There is such a task: "Write a Student class that provides information about the student's name using the getName() method a ... Course()) System.out.println(student.getName()); } } } Please comment and say what is bad and what is the place to be

Working with lists in java

Enter three lists of integers separated by a space. The first line is the first list, the second is the second, the third is ... s, but it seems that it is not about that and not in that steppe...Can you tell me what and how best to make everything work?

Java identifier expected

A little confused. I have such constructors: public Circle() { this.center = new Point(0,0);//center.getX() this.inli ... (new Circle(new Point(0,0),new Point(5,5) )); shapes.add(new Circle()); shapes.add(); }

How do I create a dynamically loaded multi-level list in pure JavaScript?

Please tell me the algorithm for writing a program for this list. Initially, there are two buttons on the layout: "CATALOG" ... th this. The page should work without reloads. I will write the code myself, please only the algorithm, thank you in advance.

Redefining the add sheet methods

I can't override the add methods. Or rather, I can, but they don't work as well as they should. The essence of the problem: W ... le)); System.out.println(box.size()); } } When executing, we see: true true 2 And it should be: true false 1