Your program will first take the name of the package the files are moved to (eg. com.google.raycasting), after that each file with <FILENAME>****<FILENAME>****
between them. You read the input however you want (STDIN, program arguments, file, etc.).
com.loovjo.tetris
****Vector.java****
package com.loovjo.someoldproject;
class Vector {
public Vector (int x, int y) {
System.out.println(x + ", " + y);
}
}
****Logger.java****
package com.loovjo.someoldproject;
class Logger {
public String name;
public Logger(String name) {
this.name = name;
}
}
com.loovjo.tetris
*Vector.java
package com.loovjo.someoldproject;
class Vector {
public Vector (int x, int y) {
System.out.println(x + ", " + y);
}
}
Logger.java
package com.loovjo.someoldproject;
class Logger {
public String name;
public Logger(String name) {
this.name = name;
}
}
(Of course these aren't the real files.)
Vector.java
package com.loovjo.tetris;
class Vector {
public Vector (int x, int y) {
System.out.println(x + ", " + y);
}
}
Logger.java
package com.loovjo.tetris;
class Vector {
public Vector (int x, int y) {
System.out.println(x + ", " + y);
}
}
****Vector.java****
package com.loovjo.tetris;
class Vector {
public Vector (int x, int y) {
System.out.println(x + ", " + y);
}
}
****Logger.java****
package com.loovjo.tetris;
class Vector {
public Vector (int x, int y) {
System.out.println(x + ", " + y);
}
}