Software Engineering Evaluation

Some Software Engineering research requires human evaluation. Unlike the program you have control, human factors are sometimes out of your control. To make sure evaluation goes well, the following should be done: 1. Have some backup evaluators in case someone could not complete on time. Even the evaluation is very important, some people may not … Read more

java.lang.IllegalStateException: Workspace is closed.

This post belongs to Eclipse JDT Tutorial Series. This error message starts the whole JDT ASTParser tutorial series. Exception in thread “main” java.lang.IllegalStateException: Workspace is closed. at org.eclipse.core.resources.ResourcesPlugin.getWorkspace(ResourcesPlugin.java:340) at Main.main(Main.java:20) In brief, this is caused by simply adding dependent jar files to regular java project. To use JDT, you need to have the program running … Read more

Conference List in Software Engineering Research Area

Hare is a list of the best conferences in Software Engineering research area. Research in software engineering is very creative. As the feature of software, researchers can build any innovation software as long as it helps software development somehow. ASE – International Conference on Automated Software Engineering ICSE – International Conference on Software Engineering ESEC/FSE … Read more

Java method for spliting a camelcase string

This Java method accepts a camel case string, and returns a linked list of splitted strings. It has been designed to handle various kinds of different cases and fully tested and good to use. Handling camel case in Java involves a lot of styles, this methods can handle the following cases: Regular camel case names, … Read more

FileOutputStream vs. FileWriter

When we use Java to write something to a file, we can do it in the following two ways. One uses FileOutputStream, the other uses FileWriter. Using FileOutputStream: File fout = new File(file_location_string); FileOutputStream fos = new FileOutputStream(fout); BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos)); out.write("something");File fout = new File(file_location_string); FileOutputStream fos = new FileOutputStream(fout); BufferedWriter … Read more

Eclipse RCP Tutorial: Eclipse Rich Client Application with a View

Eclipse RCP provides an easy way to create desktop applications with industry standards. Once you understand how the framework works, it’s very straightforward to add more views, perspectives, etc. This article shows how to create a simple rich client application with a view by using development wizard. It also explains the role of each file … Read more

Java append/add content to an existing file

Replace vs Append/Add If you want your code to create a new file and erase previous existing file, FileWriter can simply take it place. To replace all content in an existing file, use this: FileWriter fstream = new FileWriter(loc);FileWriter fstream = new FileWriter(loc); The code above will delete the existing file if it’s name is … Read more

How to Write a File Line by Line in Java?

This post summarizes the classes that can be used to write a file. 1. FileOutputStream public static void writeFile1() throws IOException { File fout = new File("out.txt"); FileOutputStream fos = new FileOutputStream(fout);   BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(fos));   for (int i = 0; i < 10; i++) { bw.write("something"); bw.newLine(); }   bw.close(); … Read more