Scroll to see replies
output out = new output();
public class Foo
{
static int var1;
}
private int one () {
// evil code in here
}
for example you can return the total age in the function and call it when you want to assign it to something else:private int evilNumber (int x, int y) {
int total;
total = x + y;
return total;
}
public void evilFunction () {
int newTotal = evilNumber(5, 6);
System.out.println("the total is" + newTotal);
}
so it will return 11 when you call evilFunction.Last reply 1 minute ago
Official London School of Economics and Political Science 2024 Applicant ThreadLast reply 2 minutes ago
Which uni to study at - LSE or KingsLast reply 2 minutes ago
Official University of St Andrews Applicant Thread for 2024Last reply 5 minutes ago
JK Rowling in ‘arrest me’ challenge over hate crime lawLast reply 6 minutes ago
AQA A Level French Paper 3 (Speaking/IRP) 7652/3 - 2024 [Exam Chat]Last reply 7 minutes ago
R u 18-25 & in a England Uni, spare a few mins to fill out my survey until 26 April.Last reply 7 minutes ago
emmanuella's study discussions #2: taking breaksLast reply 8 minutes ago
Official University of Edinburgh Applicant Thread for 2024Last reply 11 minutes ago
SMPCETs, Scottish STP, Clinical Scientist Trainee applicants for 2024Posted 12 minutes ago
can't go to ucl bc intl fees but got home fees for others :(Last reply 13 minutes ago
Economics and Economic History 2024 ThreadLast reply 14 minutes ago
Official: University of Manchester A106 2024 Entry Applicants1287
Last reply 2 weeks ago
What A-Levels should i do if i wanna do a Bsc in Computer ScienceLast reply 3 weeks ago
Correlation between performance in UKMT and performance in TMUA/STEP?Last reply 2 weeks ago
What A-Levels should i do if i wanna do a Bsc in Computer ScienceLast reply 3 weeks ago
Correlation between performance in UKMT and performance in TMUA/STEP?