Click here to Skip to main content
14,768,351 members
Home » Discussions » Java
   

Java

 
QuestionRe: g.drawString is not printing the correct value in Jpanel. Pin
Richard MacCutchan12-Apr-19 7:19
mveRichard MacCutchan12-Apr-19 7:19 
AnswerRe: g.drawString is not printing the correct value in Jpanel. Pin
chandra12212-Apr-19 19:58
Memberchandra12212-Apr-19 19:58 
GeneralRe: g.drawString is not printing the correct value in Jpanel. Pin
Richard MacCutchan12-Apr-19 21:51
mveRichard MacCutchan12-Apr-19 21:51 
GeneralRe: g.drawString is not printing the correct value in Jpanel. Pin
chandra12212-Apr-19 23:57
Memberchandra12212-Apr-19 23:57 
GeneralRe: g.drawString is not printing the correct value in Jpanel. Pin
Richard MacCutchan13-Apr-19 0:23
mveRichard MacCutchan13-Apr-19 0:23 
QuestionPreview implementing 10 cross validation Pin
Member 142144734-Apr-19 23:41
MemberMember 142144734-Apr-19 23:41 
QuestionGlobal variables are not supported in C# Pin
Brian_TheLion27-Mar-19 22:04
MemberBrian_TheLion27-Mar-19 22:04 
AnswerRe: Global variables are not supported in C# Pin
Richard MacCutchan27-Mar-19 23:26
mveRichard MacCutchan27-Mar-19 23:26 
You are right, you cannot have global variables, and for good reasons. If a procedure needs access to variables then they should either be declared at the class level (and accessed through the get/set mechanism), or passed in from the calling process(es). Don't try to work round this by hacks, you will just end up down a blind alley, or worse, a buggy application.

Also, please use the correct forum for your questions; this one is for Java not C#.
GeneralRe: Global variables are not supported in C# Pin
Brian_TheLion28-Mar-19 0:40
MemberBrian_TheLion28-Mar-19 0:40 
GeneralRe: Global variables are not supported in C# Pin
Richard MacCutchan28-Mar-19 0:45
mveRichard MacCutchan28-Mar-19 0:45 
GeneralRe: Global variables are not supported in C# Pin
Brian_TheLion28-Mar-19 0:58
MemberBrian_TheLion28-Mar-19 0:58 
GeneralRe: Global variables are not supported in C# Pin
Richard MacCutchan28-Mar-19 1:03
mveRichard MacCutchan28-Mar-19 1:03 
GeneralRe: Global variables are not supported in C# Pin
Brian_TheLion28-Mar-19 1:13
MemberBrian_TheLion28-Mar-19 1:13 
GeneralRe: Global variables are not supported in C# Pin
Richard MacCutchan28-Mar-19 2:43
mveRichard MacCutchan28-Mar-19 2:43 
GeneralRe: Global variables are not supported in C# Pin
Brian_TheLion28-Mar-19 3:02
MemberBrian_TheLion28-Mar-19 3:02 
GeneralRe: Global variables are not supported in C# Pin
jschell13-Apr-19 7:42
Memberjschell13-Apr-19 7:42 
GeneralRe: Global variables are not supported in C# Pin
Member 145588955-Oct-19 19:16
MemberMember 145588955-Oct-19 19:16 
GeneralRe: Global variables are not supported in C# Pin
Dr.Walt Fair, PE5-May-19 8:54
professionalDr.Walt Fair, PE5-May-19 8:54 
AnswerRe: Global variables are not supported in C# Pin
Maciej Los28-Mar-19 0:00
mveMaciej Los28-Mar-19 0:00 
GeneralRe: Global variables are not supported in C# Pin
Brian_TheLion28-Mar-19 0:35
MemberBrian_TheLion28-Mar-19 0:35 
AnswerRe: Global variables are not supported in C# Pin
Dr.Walt Fair, PE5-May-19 8:50
professionalDr.Walt Fair, PE5-May-19 8:50 
QuestionHome automation using iot Pin
Member 1417643119-Mar-19 2:49
MemberMember 1417643119-Mar-19 2:49 
AnswerRe: Home automation using iot Pin
OriginalGriff19-Mar-19 2:51
mveOriginalGriff19-Mar-19 2:51 
AnswerRe: Home automation using iot Pin
jschell23-Mar-19 6:48
Memberjschell23-Mar-19 6:48 
QuestionStore all words in a Trie into a list Pin
Member 1418712518-Mar-19 14:55
MemberMember 1418712518-Mar-19 14:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.