Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,151,604 members, 7,812,975 topics. Date: Tuesday, 30 April 2024 at 12:51 AM

Java Tutorial For Beginners - Programming (4) - Nairaland

Nairaland Forum / Science/Technology / Programming / Java Tutorial For Beginners (23689 Views)

C++ Tutorial For Beginners... Part 1... / For Beginners: Learn How To Create A Simple Android Native App / Programming Challenge For Beginners N20000 (2) (3) (4)

(1) (2) (3) (4) (5) (Reply) (Go Down)

Re: Java Tutorial For Beginners by pretizy: 12:33pm On Feb 11, 2015
nice one..i also give out java tutorials on my what's app group.. i will support this movement here as well

1 Like

Re: Java Tutorial For Beginners by pretizy: 12:38pm On Feb 11, 2015
Java's rich Swing api provides many features for creating GUI interface

Swing components run on the event dispatch/queue thread..

This means even after the main thread has finish running..u still have ur gui displaying.
It also means when an Exception occurs in most cases your GUI interface remains but may not work accordingly well
Most java textbooks begin introduction to swing by with the JOptionPane component
The JOptionPane provides java programmer's with an input dialog as well as a message dialog box..
So for those who are still used to command line programs you can kick start a more visual approach as java has wealthy options available
Visit the java extension packages for various swing components
javax.swing.*;
Using the java SE documentation you can learn to use this Api's as they were designed
The JOptionPane class has static methods for message and input dialogs
JOptionPane.showMessageDialog("your message"wink; gives you a dialog box that prints the string parameter passed to it
String name=JOptionPane.showInputDialog("what is your name"wink; gives you a dialog box that receives input and returns a string to your program..
Re: Java Tutorial For Beginners by leye4u: 12:43pm On Feb 11, 2015
pretizy:
nice one..i also give out java tutorials on my what's app group.. i will support this movement here as well
can u pls add me 08065979500,thanks
Re: Java Tutorial For Beginners by pretizy: 4:23pm On Feb 11, 2015
no problem.. but stick here as well

1 Like

Re: Java Tutorial For Beginners by 53cur3m0d3(m): 12:48pm On Feb 15, 2015
Java! My first Love! *reminiscing*
Re: Java Tutorial For Beginners by haibe(m): 12:57pm On Feb 15, 2015
pretizy:
nice one..i also give out java tutorials on my what's app group.. i will support this movement here as well
Re: Java Tutorial For Beginners by pelboy: 7:23am On Feb 16, 2015
.
Re: Java Tutorial For Beginners by pretizy: 8:01am On Feb 16, 2015
53cur3m0d3:
Java! My first Love! *reminiscing*

and what are you into now
Re: Java Tutorial For Beginners by 53cur3m0d3(m): 9:34am On Feb 16, 2015
pretizy:


and what are you into now
PHP, JOOMLA! More research and brainstorming sessions
Re: Java Tutorial For Beginners by nnasino(m): 10:25am On Feb 16, 2015
pretizy:
nice one..i also give out java tutorials on my what's app group.. i will support this movement here as well
Nice one, good job sir. Been so busy but i'll be back soon
Re: Java Tutorial For Beginners by ameer2: 3:24pm On Feb 17, 2015
Herez my numba' too 08022533681. . .plz,sir add me
Re: Java Tutorial For Beginners by pretizy: 1:40pm On Feb 21, 2015
53cur3m0d3:

PHP, JOOMLA! More research and brainstorming sessions


nice...where did u stop @ java
Re: Java Tutorial For Beginners by pretizy: 4:45pm On Feb 21, 2015
nnasino:

Nice one, good job sir. Been so busy but i'll be back soon
.



olryt
Re: Java Tutorial For Beginners by 53cur3m0d3(m): 7:57pm On Feb 21, 2015
pretizy:



nice...where did u stop @ java
Java EE but I didn't go in depth
Re: Java Tutorial For Beginners by MUKU5262: 5:35am On Jun 04, 2015
sir how can we get rid of this error message by cmd

could not find and load main class <class_name>

plz suggest me ,,,,, as soon as u can

thankz u sir

Re: Java Tutorial For Beginners by nnasino(m): 6:53pm On Jun 04, 2015
MUKU5262:
sir how can we get rid of this error message by cmd

could not find and load main class <class_name>

plz suggest me ,,,,, as soon as u can

thankz u sir
Make sure the class name is actually best as Java is case sensitive and thus will not find the class is it is named something else.
Also make sure that there is a main method in the best class.
If your problem isn't solved then please show us the source code.
Cheers
Re: Java Tutorial For Beginners by abenmariem: 9:39pm On Oct 30, 2015
I suggest to take a look at this core java tutorial:
http://how-to-program-in-java.com/core-java-tutorial/
It contains good posts.
Re: Java Tutorial For Beginners by HOJOSKID: 10:24pm On Oct 30, 2015
please what wrong with this code plz experties in d ouse
public class variabledecleration {
double kay ;
kay = 3.14;



/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.print("i need"wink;
System.out.print("kay"wink;
System.out.print("ball"wink;
System.out.println("am hojoskid"wink;



}

}
Re: Java Tutorial For Beginners by HOJOSKID: 10:25pm On Oct 30, 2015
07063711564 plz kindly add my number sir
Re: Java Tutorial For Beginners by Luka316(m): 8:55pm On Oct 31, 2015
@nnasino. You guys are doing a great job..... Iam sticking my head here until I see it all..... I wanted to learn java before 31 December that is what iam determined to do.... You guys are supporting my determination.



Thank you
Re: Java Tutorial For Beginners by nnasino(m): 5:52pm On Nov 02, 2015
Luka316:
@nnasino. You guys are doing a great job..... Iam sticking my head here until I see it all..... I wanted to learn java before 31 December that is what iam determined to do.... You guys are supporting my determination.



Thank you
Nice spirit, be determined and you will learn it. I don't have time to update the thread anymore so just get a good book. I recommend this: http://math.hws.edu/javanotes/

Cheers
Re: Java Tutorial For Beginners by danvery2k6(m): 12:18pm On Nov 05, 2015
HOJOSKID:
please what wrong with this code plz experties in d ouse
public class variabledecleration {
double kay ;
kay = 3.14;



/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.print("i need"wink;
System.out.print("kay"wink;
System.out.print("ball"wink;
System.out.println("am hojoskid"wink;



}

}

I don't know if you have gotten an answer for this but let me say a few things anyway.

1. When learning any programming language, it is best to study the conventions so that as you learn, you begin to learn the "Good Practices" along.
Let's start from the name of your class : By convention, Java uses CamelCase for class names. Which means that the name of your class should
have been something like
VariableDeclaration


2. Under no circumstances should you put variables in the body of the class, they should go into method bodies. The only variables allowed to stay in
class body are
instance variables
which are always preceded by access modifiers
private, protected or public


In other words, I am saying remove these

double kay ;
kay = 3.14;


and move them to the method body.


- Verem Dugeri
Re: Java Tutorial For Beginners by abenmariem: 9:45pm On Nov 05, 2015
I recommend the java variables for beginners tutorial to learn how to use java variables.
Re: Java Tutorial For Beginners by sunnico(m): 10:21am On Nov 06, 2015
seeing ur code am assuming ur smiley means a closing bracket, if not dats an error, bt dat aside.....
i would like to ask what ur program is aimed at doing...is it just printing only Strings or with variables..??
Re: Java Tutorial For Beginners by abenmariem: 10:57am On Dec 01, 2015
I find this core java tutorial very useful.
It contains a good java class tutorial, a very useful java objects tutorial and also a good java constructor tutorial.
Re: Java Tutorial For Beginners by thernee: 4:08pm On Dec 05, 2015
Pls. Add me to the whatsApp group
08189878321
Re: Java Tutorial For Beginners by Adams567: 6:15am On Mar 18, 2016
07063256331
Re: Java Tutorial For Beginners by xchet(m): 1:36pm On Apr 07, 2016
Add me to the group 08034930223
Re: Java Tutorial For Beginners by hamdarquine: 4:01pm On May 23, 2016
Kindly add me to the group 08132388932.

Meanwhile, I also run a blog where I teach JAVA.

Its an interactive platform where you can read my tutorials, ask questions, correct my views and also share some skills with us.

Check it out !

https://gbonjubeeblog./

1 Like

Re: Java Tutorial For Beginners by abenmariem: 11:28am On Aug 02, 2016
Converting a data type to another one is called casting.
I suggest to take a look at this casting in java course to understand better the concept.
Re: Java Tutorial For Beginners by Olamzy001: 11:17am On Aug 06, 2016
pls add me up to the whatsapp group 08163727964
Re: Java Tutorial For Beginners by indupriya1: 5:49am On Nov 25, 2017
Hai very nice to read your post lots of useful information and also check [url="http://java2python.com/core-java-online-test-mcqs-objective-type/"]Core Java Technical Test(Quiz)[/url] Very useful before going to written test or Interview

(1) (2) (3) (4) (5) (Reply)

Programmers: At What Age Did You Start Programming? / I Want To Learn Computer Programming, What Language Should I Learn First? / Community Project(strictly Java)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 31
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.