nebmucoy674
Coder
Hey, maybe a learning experience for new people. Watching something on youtube it said that a string/integer is defined in each new block of code. So why is 9 still showing instead of 6 in the console After watching this video on blocks of code I thought that after the variable is defined again then it reads reads down the page.
Thank you in advance again. Everyone's help on this forum makes me feel both inferior and insecure. Thank you smart people!!🙂
Java:
package testingintegers;
public class testingintegers {
public static void main(String[] args)
{
int a = 9;
System.out.print(a);}
{ int a = 6;
System.out.println(a);
}}
Thank you in advance again. Everyone's help on this forum makes me feel both inferior and insecure. Thank you smart people!!🙂