Hello,
I got a pretty long code written in java and I need to use that algorithms in Excel. I was trying to do that on my own, but I recieved a lot of compile errors. I don't know how to represent few statements :/
It's just part of the code, but I think I can handle the rest of it.
What do you think guys? Can you help me, please? I'm not lazy, I'm just a noob in programming.
I got a pretty long code written in java and I need to use that algorithms in Excel. I was trying to do that on my own, but I recieved a lot of compile errors. I don't know how to represent few statements :/
Code:
package jobshop;
import java.util.ArrayList;
import java.util.List;
public class JobShop {
final int N=3, M=3;
final int MAXINT=100000;
int[ ][ ] ProcessingTimes;
int[ ][ ] Order;
int[ ][ ] Solution;
int[] MachineReady = new int[M];
int[] JobReady = new int[N];
private class Phase {
int job;
int machine;
int order;
public Phase(int job, int machine, int order){
this.job = job; this.machine = machine; this.order= order;
}
}
private int readNfromExcel(){
return N;
}
private int readMfromExcel(){
return M;
}
private int[][] loadPhaseOrderFromExcel(){
int [][] A= new int[N][M]; //Job - Machine
A[0][0]=0; A[0][1]=1; A[0][2]=2;
A[1][0]=2; A[1][1]=0; A[1][2]=1;
A[2][0]=0; A[2][1]=1; A[2][2]=2;
return A;
}
It's just part of the code, but I think I can handle the rest of it.
What do you think guys? Can you help me, please? I'm not lazy, I'm just a noob in programming.