cpp_is_king
Member
No. I don't believe that will work in this case.
<EDIT>
Actualy it might since the methods are static and he does it like this
Code:List<Integer> a = HelloWorld.<Integer>methodA(Arrays.asList(1, 2, 3), Arrays.asList(1, 2, 3));
but I'm not in front of a compiler right now to test it.
I admit I come from C++ and only pretend to know Java, but why wouldn't it work?
Also, SMH at putting the type parameterization before the method name. Who designed this crap!
Im slowly getting the grip on VBA, but I ran into an issue where if I convert the contents of a cell to a string, modify it and write it back, it omits the last nr if its a 0.
My code is here
Code:s = "T" + Left(CStr(ws.Cells(1, i)), 4) + "." + Right(CStr(ws.Cells(1, i)), 2) ws.Cells(1, i).Value = s
Ideally that should take a value like "2016.06" and convert it into "T2016.06"
But with October "2016.10" it gives me "T2016.,1"
Worst case I can go and change that one cell every time I convert but Id like to find a solution for this.
Not sure you will find any VBA people around here, but try setting s to just the Left string and seeing what gets printed. Then try setting s to just the Right string. You should be able to narrow it down and figure out why you're getting a comma. Also, if I'm not mistaken the Excel VBA editor supports debugging. Just stick a breakpoint on the line and evaluate your function.