User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 391,940 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,868 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 217 | Replies: 1
Reply
Join Date: Oct 2007
Posts: 41
Reputation: 1337455 10534 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 5
1337455 10534 1337455 10534 is offline Offline
Light Poster

Python to Java: Questions I Have

  #1  
Apr 8th, 2008
Hi,
I'm a high-school freshman that wont be taking a programming class until next year. I am proficient at Python, and they decided to put me in AB Programming, which is Java.
When I first started programming on a z80 TI-83+ with BASIC, I set out to make my life easier with small, functional programs. So, being a Linux buff on top of knowing z80 BASIC, I came across Python which is now my favorite language.

I can't find practical uses for Java, like I can for Python. I know the language should seem as an extension of the idea, but it's hard for me to implement Java.
Take for example, a very simple script to update software on a Debian system would be;
  1. import os
  2. try:
  3. open("/usr/bin/sudo",'rb')
  4. sudo = True
  5. except IOError:
  6. sudo = False
  7. if sudo == True: os.system("sudo apt-get update && sudo apt-get upgrade")
  8. else: os.system("apt-get update && apt-get upgrade")
I dont have a clue as to how you could do any of this in Java (well, control structures are obvious, but still.)

I'm trying to find a Java tutorial that will make me familiar with commonly used packages and teach me step by step how to do things, but I can't really find a good one.
Is there a Java equivalent of the Python Global Module Index?
And which IDE is better for newbies, Eclipse or NetBeans?
Last edited by 1337455 10534 : Apr 8th, 2008 at 1:34 pm.
"And da wind cry moron." ~ Pearls Before Swine
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2007
Location: USA
Posts: 2,599
Reputation: Ezzaral is just really nice Ezzaral is just really nice Ezzaral is just really nice Ezzaral is just really nice Ezzaral is just really nice 
Rep Power: 11
Solved Threads: 257
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Posting Maven

Re: Python to Java: Questions I Have

  #2  
Apr 8th, 2008
See the resources outlined in the Read Me post at the top of this forum. There is a lot of info there to get you started.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Java Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Java Forum

All times are GMT -4. The time now is 8:41 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC