Success, java week 2 - All understood, just remember to add the "space + space value" and the ;
package General;
public class Sums {
public static void main(String[] args) {
int num1 = 8;
int num2 = 3;
int answer;
answer = num1 + num2;
System.out.println ("Sum " + num1 + " / " + num2 + " = " + answer);
answer = num1 * num2;
System.out.println ("Value of " + num1 + " * " + num2 + " = " + answer);
answer = num1 & num2;
System.out.println("Remaining from " + num1 + " / " + num2 + " = " + answer);
System.out.println ("Value of num1 is " + num1);
System.out.println ( "Value of num2 is " + num2);
num1 = num1 +1;
System.out.println("Value of num1 is now " + num1);
System.out.println ("I am now happy with the concept of this remember" +
" to add the space + ");
}
}
run:
Sum 8 / 3 = 0
Value of 8 * 3 = 24
Remaining from 8 / 3 = 0
Value of num1 is 8
Value of num2 is 3
Value of num1 is now 9
I am now happy with the concept of this remember to add the space +
BUILD SUCCESSFUL (total time: 0 seconds)
Sunday, 10 October 2010
Thursday, 7 October 2010
Wednesday, 6 October 2010
Homework Complete for tomorrow
Here we are at the end of my study day; all homework is complete; Blog sheet 2 is complete and my virtual partner Bucky has been embedded as a link, he has a cool way of teaching Java - just watch and listen!; 000webhost is created with my student database working, xampp is set up and running, I hope! yeah it is....time to pack my bag for tomorrow then go and have some "me time"
Horoscopes for Today
Seems I need to focus some more as the work is going to pile up!
http://www.tarot.com/astrology/daily-horoscope/capricorn-horoscope/?scopeDay=20101006
http://www.tarot.com/astrology/daily-horoscope/capricorn-horoscope/?scopeDay=20101006
This is a link to UWE
I am a student of UWE, you can view my university by clicking on the link below:
http://www.uwe.ac.uk/
http://www.uwe.ac.uk/
Tuesday, 5 October 2010
Subscribe to:
Posts (Atom)

