Ahh, yes. Good ol’ Project Euler. Here’s my solution:

[cc lang=“java”]

import java.util.Scanner;
//Program to solve Euler Project One
//kuemerle5
//Block 2
pub­lic class euler1{
pri­vate int input­Num;
pri­vate int fac­torOne;
pri­vate int fac­torTwo;
pri­vate int numSum;

//This method sim­ply gets the user’s input
pub­lic void get­Info(){
Scan­ner in = new Scanner(System.in);
System.out.print(“Please enter the num­ber you wish me to find the sum of two num­bers: ”);
input­Num  = in.nextInt();
System.out.print(“Please enter the first mul­ti­ple: ”);
fac­torOne = in.nextInt();
System.out.print(“Please enter the sec­ond mul­ti­ple: ”);
fac­torTwo = in.nextInt();
System.out.println(“Thank you for your input. We will now do some cal­cu­la­tions. Stand by…”);
}

//This is the main part of the pro­gram, using a “for” state­ment, then a nested “if” state­ment
pub­lic void doWork(){
for(int runAmt=1; runAmt<inputNum; runAmt+=1){
if(runAmt%factorOne==0 || runAmt%factorTwo==0){
num­Sum += runAmt;
}
}
}

//The “getOut­put” method prints out the results of the “doWork” method
pub­lic void getOut­put(){
System.out.println(“Sum is: ” + num­Sum);
}
}

[/cc]