Mar 28, 2013 01:21 AM
(This post was last modified: Mar 28, 2013 01:22 AM by RoboBlawck.)
Mighty Hackfourm users!I need your help!
The STORY:
I was watching a You-tube tut about Java and I decided to make a mini Facebook Application.What it does is that it just simply ask you for your First Name And Last Name.
The Problem:
I cannot print an int if It was in another class.I have tried to use the following code to help,but still it does not work.(Perhaps the code won't help at all?)
HOW TO HELP:
I was wondering if you guys have any idea how to share ints or doubles with multiple classes?Say I imported Scanner and I were to make it so that two ints add together,but in the other class it would print up the combined int?
CODE:
This is my entrie code if you need it to help me.
FacebookMain.java
Spoiler (Click to View)
FacebookFirstName.java
Spoiler (Click to View)
FacebookSecondName.java
Spoiler (Click to View)
If you were to help me you will get an invisible cookie for helping me :)
The STORY:
I was watching a You-tube tut about Java and I decided to make a mini Facebook Application.What it does is that it just simply ask you for your First Name And Last Name.
The Problem:
I cannot print an int if It was in another class.I have tried to use the following code to help,but still it does not work.(Perhaps the code won't help at all?)
PHP Code
<?php
FacebookFirstName FirstNameObject = new FacebookFirstName ();
FirstNameObject.FirstName(FacebookFirstName1);
I was wondering if you guys have any idea how to share ints or doubles with multiple classes?Say I imported Scanner and I were to make it so that two ints add together,but in the other class it would print up the combined int?
CODE:
This is my entrie code if you need it to help me.
FacebookMain.java
Spoiler (Click to View)
FacebookFirstName.java
Spoiler (Click to View)
FacebookSecondName.java
Spoiler (Click to View)
If you were to help me you will get an invisible cookie for helping me :)



![[Image: 9N6Aq1f.gif]](https://i.imgur.com/9N6Aq1f.gif)