select field1, field2 from mytable group by field1, field2 having count(*)>1
Category: IT
Computer graphics
Source on Github
3D-Ball
Continue reading Computer graphics
Resource file not found
File file = new File(getClass().getResource("resourceFile.txt").getFile());
but the file doesn’t exist.
It turned out the problem was due to spaces in my path
I found two solutions:
org.apache.commons.io.FileUtils.toFile(myClass().getResource("resourceFile.txt"));
myClass().getResource("resourceFile.txt").toURI();
Joshua Bloch – Effective Java
Create and destroy object
Рассмотрите возможность замены конструкторов
статическими методами генерации.
Свойство синглтона oбеспечивайте закрытым конструктором
Отсутствие экземпляров обеспечивает закрытый конструктор