This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// --------- | |
// VERSION 1 | |
// --------- | |
public void sum1(List<Iterator<Double>> iterators, int length) { | |
double[] data = new double[length]; | |
for (Iterator<Double> it : iterators) { | |
for (int i = 0; i < length; i++) { | |
data[i] += it.next(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LoginPage extends BasePage { | |
private static class LoginForm extends StatelessForm<Void> { | |
private String username; | |
private String password; | |
public LoginForm(String id) { | |
super(id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BeanLocator implements ServiceLocator { | |
@Override | |
public Object getInstance(Class<?> clazz) { | |
System.out.println(clazz); | |
if (clazz.equals(GroupManager.class)) { | |
return lookupBean(clazz, "GroupManager"); | |
} else { | |
return null; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; |