Learning Java for a Physics Class

KnickNut3

Platinum Member
Oct 1, 2001
2,382
0
0
I'm in a physics class that's based on a research project. The most interesting project's only caveat is that it requires Java programming, and I have no experience with programming languages. I can probably work learning Java into my progress reports to get some extra points, but I was wondering how easy/feasible it would be. I'm a reasonably advanced user but have no experience in programming. I would have to work on interpreting fringes from a sensor that helps to measure depth (we have the programming to use it to detect surface area--neet to create a way to detect motion). I'd have a partner with C++ experience so we could do it together, but would just like an idea what I'm getting myself into.
 

slpaulson

Diamond Member
Jun 5, 2000
4,414
14
81
I think you should probably take a Java class first. Your partner with C++ experience should be able to pick up Java pretty quick though.
 

Zanix

Diamond Member
Feb 11, 2003
5,568
12
81
Knowing what "object oriented" means will help.

How complicated a program will you have to write?

The basics are... well, not too difficult. Argh. I don't know, it's hard to guess what a no-exp programmer would think.

There's alot more symbols/syntax than BASIC. I can say that much. :shocked::(
 

SaturnX

Diamond Member
Jul 16, 2000
3,415
0
76
Overall, it's a fairly straightforward and intuitive language. Once you grasp the concept of Objects, it gets pretty easy from there. Designing user-interfaces however.... in my opionion is best left to C++/C#/VB.NET

But if you sat down with a book, even did some online tutorials, I think you'd be able to handle it. Since it sounds like you'll just be processing data, should be straight forward. The most difficult aspect would be importing the data.

--Mark
 

Cooler

Diamond Member
Mar 31, 2005
3,835
0
0
public class test{


public test(){
System.out.println("Hey im a class");
}
public static void main(String []args ){
// code in here to start the program
test code = new test();
// creates the class
}


}


if you need any help with java just pm me.
 

miniMUNCH

Diamond Member
Nov 16, 2000
4,159
0
0
basic I/O and mathematical programming is pretty straight forward...your partner can definitely handle it. Obviously... you should get a good Java book and start learning ASAP if you want to be much help to your partner.
 

KnickNut3

Platinum Member
Oct 1, 2001
2,382
0
0
Well, considering this project is an entire semester's class, I'd say I'd read up on it.

Yeah, should be computational only, not much of an interface. Apparently we have to develop a method to convert the fringes the sensor gets into isovals of sorts, then detect at what point the object is moving (it's to set up an automatic turn-off if the patient moves while undergoing radiation treatment).

And I know I always have a great resource right here. I've found some tutorials online and will check the library soon. If anyone knows of any good online tutorials or suggested books my library might have, please let me know.