java - How do I change an integer that is given by the user to a string? -


I am working on a method for a program, and I need to change the integer in the method without any changes Method Header This method should be able to produce zero in the beginning, and the only way to do this can be by string. I have tried many different ways, but I am not sure if this is not a predefined number to work with you then how it should work. There has been no help from the internet so far. Can someone help me point in the right direction?

  Public Static Ent encryp {int digit4 = (num + 7)% 10; Number / 10 = 10; Int digit3 = (num + 7)% 10; Number / 10 = 10; Int digit2 = (num + 7)% 10; Number / 10 = 10; Int digit1 = (num + 7)% 10; Number / 10 = 10; Return (score 3 * 1000 + numeral 4 * 100 + digit 1 * 10 + 2;); }    

to get the value of a int and Put this into a string use the method: String.valueOf (int variable) .

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -