Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: hi everyone

  1. #1
    Junior Member
    Join Date
    Oct 2013
    Posts
    14
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default hi everyone

    Am a beginner and am learning on my own
    i started two days ago and am getting on fine

    but i have a problem now, some should pls help out


    i started with JAVA somedays ago and i think am getting well on it
    But the problem i have now is that some of the code written on the material are somehow different wen i work on java IDE

    package javaapplication2;

    public class main {

    public static void main(String[] args) {


    int firstnumber, secondnumber, thirdnumber, answer;
    firstnumber = 100;
    secondnumber = 75;
    thirdnumber = 25;

    answer = (firstnumber * secondnumber) / thirdnumber;

    System.out.print("Total is " + answer);

    you can see above that there is no In and Run was successfull

    But the material says printIn. y is that so cos its confusing
    ----------------------------------------------------------------------------------------------------


    another one now is

    package javaapplication5;

    public class JavaApplication5 {


    import java.util.Scanner;

    public static void main(String[] args) {



    String firstname;
    System.out.print("Enter Your First Name Here"wink;
    firstname = user_input.next();

    String secondname;
    System.out.print("Enter Your Family Name Here"wink;
    secondname = user_input.next();

    String fullname;
    fullname = (firstname + " " + secondname);

    System.out.print("You are" + fullname);

    java is telling that there is error on the bolded
    can someone pls help out


    yahoo
    facebook
    google
    skype
    whatsapp

    but google and skype will be better
    i dont want pple disturbing me on FB

    pls PM and i will send my id
    Thanks

    I cant do it alone

  2. #2
    Forum Squatter newbie's Avatar
    Join Date
    Nov 2010
    Location
    North Wales
    Posts
    660
    My Mood
    Stressed
    Thanks
    28
    Thanked 115 Times in 106 Posts
    Blog Entries
    1

    Default Re: hi everyone

    Do not post duplicate threads on the forums Dokunbam. I ask everyone to stick to the original thread:

    pls help me out on this (import scanner)
    Please use [highlight=Java]//code goes here...[/highlight] tags when posting your code