LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices



Reply
 
Search this Thread
Old 11-07-2005, 03:30 AM   #16
vireshwali
Member
 
Registered: Sep 2005
Posts: 67

Rep: Reputation: 15

Hi,
good for some basic starting, but for those intresed in a dive in the sea of java programming on linux go to tutorials at sun.java.com and start hunting.

It is best to download jdk for linux from sun and code in vi/vim/gvim and compile and run from console.

Beginners shall have a great time deciphering the myteries. Do also remember to view the API of your specific jdk version download at sun. The API is what i will call the java programmers bible.


Happy learning.
 
Old 02-24-2006, 06:21 AM   #17
rock_till_456
LQ Newbie
 
Registered: Sep 2004
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by lmellen
I've worked all the example programs up to class moon.The class moon program won't compile. I get:

ex6.java:16: cannot resolve symbol
symbol : method readline()
location: class java.io.BufferedReader

Then there is a ^ under the first new in the following line:

String strA = new BufferedReader(new InputStreamReader(System.in)).readLine();

Just wondering why it won't compile. No big deal, but a reply would be interesting.-- Thanks- Larry (I haven't been able to solve this problem)
--------------------------
first have you copy pasted teh moon d\code and tried it out bcos it works i have tried that with jdk 1.5 version it compiled perfectly

if the error is still there just try to resolve the method bcos readline() is a method availbale in BufferReader , so check first check by just calling by BufferReader object
 
Old 06-04-2007, 08:28 AM   #18
abraham lemma
LQ Newbie
 
Registered: May 2007
Posts: 1

Rep: Reputation: 0
hi

linux documentation
 
Old 11-12-2008, 04:54 AM   #19
sugitha
LQ Newbie
 
Registered: Nov 2008
Location: chennai
Posts: 2

Rep: Reputation: 0
Very good article. As a learner of Java, this is helpful for me.
 
Old 11-24-2008, 11:37 PM   #20
sugitha
LQ Newbie
 
Registered: Nov 2008
Location: chennai
Posts: 2

Rep: Reputation: 0
This will be helpful for run an applet program
appletviewer filename.html
 
Old 04-01-2009, 01:18 PM   #21
mikese
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Rep: Reputation: 0
Anyone building apps for IMG networks should check out diameter IMS it's used in so many apps. I just started building with it.
 
Old 10-07-2009, 06:58 PM   #22
vjmac
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by then View Post
Hi

Well written article , bad formatting though. Had a tough time reading.

A couple of spaces and some para-breaks would be welcome.

regards
theN
When's the update?
 
Old 12-19-2009, 12:57 PM   #23
AeonX
LQ Newbie
 
Registered: Jul 2009
Posts: 21

Rep: Reputation: 0
are java commands in linux different from the java commands in windows?
 
Old 01-10-2010, 11:06 AM   #24
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 547

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by AeonX View Post
are java commands in linux different from the java commands in windows?
99% of the time, no, however there may of course be certain situations where a program has been written for linux which will not compile/run on windows because some platform-specific code exists - it could be something as simple as a file location - a hard-coded /home/me/file.txt ain't going to get you far in windows.
 
Old 01-26-2013, 05:45 AM   #25
SusanRaj
LQ Newbie
 
Registered: Jan 2013
Location: India
Posts: 1

Rep: Reputation: 0
How to implement User Authentication using servlet filters ?

Read my tech blog for User Authentication using servlet filters

Last edited by SusanRaj; 01-26-2013 at 05:47 AM.
 
Old 08-18-2013, 09:18 AM   #26
Sudy9
LQ Newbie
 
Registered: May 2011
Location: Pune
Posts: 2

Rep: Reputation: 0
Thumbs up

Great article for the java begineers
 
Old 08-03-2014, 06:48 PM   #27
danliston
LQ Newbie
 
Registered: Feb 2012
Location: South Dakota
Distribution: Fedora, CentOS, Oracle, OpenSolaris
Posts: 16

Rep: Reputation: Disabled
Match correction to triangle example code

When you test b == 0, you declare the b statement be b = a - c instead of b = c - a

Considering a squared plus b squared equal c squared, C is always larger than A or B,
wouldn't this fact mitigate the need to test either A or B for a negative value? The
text book example of a right triangle is a=3, b=4, c=5; squared, 9=25-16 and 16=25-9

Any number squared becomes a positive. You only subtract a smaller square from a
larger square. It should be impossible for the difference to ever be a negative
value.

Last edited by danliston; 08-03-2014 at 06:49 PM.
 
Old 08-11-2014, 02:45 PM   #28
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian
Posts: 2,541

Rep: Reputation: 878Reputation: 878Reputation: 878Reputation: 878Reputation: 878Reputation: 878Reputation: 878
Quote:
Originally Posted by danliston View Post
Considering a squared plus b squared equal c squared, C is always larger than A or B,
wouldn't this fact mitigate the need to test either A or B for a negative value?
There is nothing in the code that constrains C to be the hypotenuse (the side opposite the right angle, i.e. the longest side). Suppose the user enters a=5, c=3.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: HOWTO: Install Sun's Java VM in Fedora Core 2 kevcart3 LinuxAnswers Discussion 9 10-28-2005 03:34 PM
DISCUSSION: From beginning to end: ProFTPD MasterC LinuxAnswers Discussion 5 09-25-2005 12:21 AM
Just the beginning.... woodworker97 Mandriva 5 05-20-2005 02:53 AM
very beginning vegpl Linux From Scratch 13 06-26-2004 12:56 PM
Beginning help with Java darin3200 Programming 19 09-11-2003 09:34 PM


All times are GMT -5. The time now is 06:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration