Goal state - with a cuppa Java
It is done - I have managed to confirm my GRE and TOEFL dates. They are set for the first week of November. So, now there is a goal to work towards. Hopefully, I should be able to push my score into the 1500s by then.
Java seems to be a slightly odd language. There are concepts repeated from C/C++, but just when you think you have the hang of it - it surprises you
But it’s good fun to be learning a new language after such a long time.
College seems to be on a slowdown with all the profs taking taking breaks from thursday-monday. Works for us - so far no one is complaining.
Compiler construction class is getting interesting. There are some interesting fundamentals involved. As in the basic infix/prefix/postfix notations we learnt in our second year play a big role. As do the concepts of Regular Expressions, Grammars and Automata. Actually, all parsers can be thought of as Push Down Automata. A ubject can really come alive when the prof speaks with total authority on the subject. It’s a pity that we can’t find them in college. The dude whom we learn from is actually a mechanical engineer and is largely self taught in computers. A local urban legend about him is that when he was doing an MCA course, the standard textbook had been penned by him!
Anyway, will stop now. Want to read up on java. Later all…
[Extend post : 1922 hrs]
As I said, am really new to Java - and need to brush up on classes and OO concepts. I know that the error in this code is silly - but will still be grateful if someone can point it out :
public class Appl
{
string app_Name;
string app_Addr;
string app_Posn;
public void disp_det(byte i)
{
System.out.println(” Name is : ” + app_Name[i]);
System.out.println(” Address is : ” + app_Addr[i]);
System.out.println(” Position is : ” + app_Posn[i]);
}
public Appl()
{
app_Name[0] = “A”;
app_Addr[0] = “B”;
app_Posn[0] = “C”;
app_Name[1] = “D”;
app_Addr[1] = “E”;
app_Posn[1] = “F”;
app_Name[2] = “G”;
app_Addr[2] = “H”;
app_Posn[2] = “I”;
}
public void static main(String args[])
{
byte i;
string [3]details;
details = new string[3];
Appl a1 = new Appl();
for(i=0;i
zero comments so far »
Please won't you leave a comment, below? It'll put some text here!
Copy link for RSS feed for comments on this post or for TrackBack URI
Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
