Scratch for Java

File::save()

Saves the given object to the specified path in the default file type (JSON).

Syntax

Java

.save(path, obj)
.save(path, obj, type)

Parameters

Name Data Type Description
path String the path where the object should be saved
obj T the object to be saved
type FileType the file type format in which the object will be saved

Return

void

save()