set /P val=Please enter value: || set val=default
If the user enters a value, the %val% variable is set to the given value. Otherwise (if the user simply pressed Enter) 'default' is used instead.
Neat :).
Thoughts?
set /P val=Please enter value: || set val=default
public class SyncOperationTableModel extends AbstractTableModel
{
// attributes
public SyncOperationTableModel(ArrayListsyncOperations)
{
super();
// initialize attributes
}
public int getRowCount()
{
// return the row count based on attributes (for instance)
}
public int getColumnCount()
{
// return column count base on attributes (for instance)
}
public String getColumName(int column)
{
// return column name
}
public Object getValueAt(int row, int column)
{
// return the value,
// by default setValueAt is not necessary
// (AbstractTableModel returns false to isCellEditable method)
}
}
@Override
public String getColumnName(int column)
{
// code
}

