Sam Lanza

Greenhorn
+ Follow
since Nov 09, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sam Lanza

Ulf Dittmer wrote:I don't know that you'd need a book or anything - wouldn't HTTP communication be sufficient? Select a Java hosting company (like one of the ones listed in the ServletsFaq), and write a Java web app using servlets and JSP to handle all the traffic.



This is all very helpful. I appreciate the sage advice.

One last question: From what I understand of web applications, they run on the server and act as the server portion of the client/server architecture. The web applications serve web pages to the client (the browser). This works perfectly well with desktop and laptop computers. Does the concept work the same for iphones, androids, and tablets? Do they essentially get served web pages from the web application like desktop/laptop computers? If I had to guess, your app would have to somehow use the browser in the smart phone/tablet to display the pages served up by the web application. Thanks.
12 years ago
Also, can you build a Java Server that talks to Android and iphone apps? I'd like to build something where 5 different people with android and iphone phones can be tied together by a Java Server.
12 years ago

Ulf Dittmer wrote:Not only is this possible, but it seems very standard fare for a mobile app. But yes, you would need to buy server space. It's possible you might find free server space somewhere, but you'd have to ask yourself whether you could rely on it to be available for the lifetime of the mobile app.



Any advice on a book or website detailing this process? I'd appreciate it.
12 years ago
I have this idea for an app that would require connecting to a server and then downloading a text file (comma delimited). The idea is to have a central server that the app on an android phone can connect to. When it connects, a list of all the text files on the server would come up to choose from. When the android user selects a file, it automatically downloads to the android phone. So the app in question would need to connect to the server, see the list of text files on the server, display the list to the user in presentable fashion, download a specific file chosen by the user, and then finally pull the contents of the file into the app. Also, there would be the ability for individual users to upload additional comma delimited text files. The idea is that any random user of this app would be able to connect to that same server and see the same list. Would something like this be possible? And if so, is there a free way of doing this or would this take renting out server space? I haven't the first clue how something like this would work and would appreciate any helpful advice. Thanks!
12 years ago
I'd like to get in on a team project in the creative field like something dealing with movies or even games. I think something like that would be an interesting project to work on in my spare time.
12 years ago
Anybody know of a good open source project I could work on to build up my experience? I've got the BS degree in Computer Science, but the I keep getting shot down for Java programmer jobs because of lack of experience I'd like to change that. I'd appreciate any helpful advice.
12 years ago
Hey Campbell, thanks for that bit of advice! $100 is just way too much. But $40 is much more reasonable. I just bought one of those from Amazon. It's used, but it's like new with the cd still sealed and everything. I'm heard some good things about this book and I'm hoping it has a lot of good exercises to do. Anyway, thanks again!
16 years ago
Thanks for the advice! I'll try this cattledrive. It looks like there's not many exercies in there, but I'll give it a shot before clunking down $100 for deital & deital.
16 years ago
Anybody know of a Java workbook out there with just exercises? I'm actually preparing for the Java Programmer certification and I learn best by DOING. I've got theory coming out the ears and I need to learn in a practical way. Would appreciate any kind of recommendation.
16 years ago
Did you guys with the 80+% scores use the mock exams by Enthuware?
16 years ago
Anybody know where I can get a whole lot of Java exercises? I feel that's the biggest part missing from my studying: The hands-on experience. There's a lot of books out there, but there's not enough hands-on exercises... the books tend to scrimp. I'd like to hit the following areas heavily with exercises:

GENERICS: passing methods with/without Generics.. Creating custom Generics

REGEX: searching with Pattern/Matcher, Searching with Scanner, Using Scanner for tokenizing, Using String.split() for tokenizing

THREADS: use with synchronization, use with wait/notify/notifyALL

CALENDAR EXERCISES: Use of Calendar, Date, DateFormat, and Locales in useful situations.

INNER CLASSES: Just general exercise practice with static nested classes and inner classes.

OBJECT ORIENTED: General OO type exercises putting inheritance to work along with how static methods play its part here.

JAVA/JAVAC: Exercises in compiling and running classes from various different directories with different packages, etc.

COLLECTIONS: Exercises in the usage of various types of collections and arrays and which would be most useful for what.

ARRAY and COLLECTIONS SORT/SEARCH: This is a major weak area of mine. I'd like to tackle exercises in how to use binarySearch, Comparable, Comparators for both Array and Collection.

MAPS: Also, a very weak area of mine. Need practice using maps with key/value pairings. Also, I need practice with overriding equals and hashcode.

There's probably more that will come to me, but these are off the top of my head. I've been having a hard time finding a book or website with nothing but exercises with clues/answers. Help would be appreciated!
Anybody know where I can get a whole lot of Java exercises? I feel that's the biggest part missing from my studying: The hands-on experience. There's a lot of books out there, but there's not enough hands-on exercises... the books tend to scrimp. I'd like to hit the following areas heavily with exercises:

GENERICS: passing methods with/without Generics.. Creating custom Generics

REGEX: searching with Pattern/Matcher, Searching with Scanner, Using Scanner for tokenizing, Using String.split() for tokenizing

THREADS: use with synchronization, use with wait/notify/notifyALL

CALENDAR EXERCISES: Use of Calendar, Date, DateFormat, and Locales in useful situations.

INNER CLASSES: Just general exercise practice with static nested classes and inner classes.

OBJECT ORIENTED: General OO type exercises putting inheritance to work along with how static methods play its part here.

JAVA/JAVAC: Exercises in compiling and running classes from various different directories with different packages, etc.

COLLECTIONS: Exercises in the usage of various types of collections and arrays and which would be most useful for what.

ARRAY and COLLECTIONS SORT/SEARCH: This is a major weak area of mine. I'd like to tackle exercises in how to use binarySearch, Comparable, Comparators for both Array and Collection.

MAPS: Also, a very weak area of mine. Need practice using maps with key/value pairings. Also, I need practice with overriding equals and hashcode.

There's probably more that will come to me, but these are off the top of my head. I've been having a hard time finding a book or website with nothing but exercises with clues/answers. Help would be appreciated!
16 years ago
Ooops! Didn't see your post there, Jesper. Thanks for the help!
16 years ago
Ok, I figured out my own question. DUH! The assignment of x++ to x trumps the value of x++. So basically, in each iteration, the value assigned (0) is coming back around to be iterated by x++. However, since x is not iterated until after the expression, x is always being assigned 0. Hehe. I'm a total NOOB!
16 years ago
I've been playing around with iterations, and here's a strange situation I've bumped into:

1.) x = x++;
2.) x++;

Now, I know that in the first expression, x increments by 1 AFTER it assigns to x. So if x were initialized to 0, the first expression would produce 0 and the second expression would produce 1 as intended. However, if you would put the first expression into a loop, it just keeps printing 0s instead of incrementing. For some reason, it doesn't remember the value of x through each iteration. So it basically just acts like x=x. What gives? Here's the code I tested:

class WhileTest {
public static void main(String[] args) {
int x = 0;

while(x<10) {
x=x++;
System.out.println(x);
}
}
}

This just goes into a never-ending loop of 0s.
16 years ago